(Official Java development engineer QQ group (27163376), please enter your ID for verification. ?The first thing is to satisfy the peer-to-peer LAN chatter, which is simple and convenient, without the server side, without the verification function, and can see all the online users (implemented by scanning). In short, it is relatively simple, and the first program is to scan this piece. ?? The development environment is NetBean6.0. The language is JAVA;? Design two window classes, one on scanning and listing online chatters, and one on sending messages. Scanning adopts multi-threading, and the user can control the number of threads. When the program is running, open port 8000, use TCP to monitor, and use UDP protocol to talk about geography, and the port is 3000. The loss of messages is not managed, because the probability of packet loss in the local area network is very small. The user can input the IP segment for scanning. Since it is based on the local area network, we assume that the input IP is of class C, so only the final 8 bits are different. We follow this agreement when we manage IP. So the maximum number of threads is 256. ?? There are some other types of design, there are IP classes for IP management, thread classes, service port opening classes, UDP port monitoring classes, etc.
200500824115\build\classes\200500824115.exe
200500824115\build\classes\Chat.class
200500824115\build\classes\ChatJFrame$1.class
200500824115\build\classes\ChatJFrame.class
200500824115\build\classes\ChatMainJFrame$1.class
200500824115\build\classes\ChatMainJFrame$2.class
200500824115\build\classes\ChatMainJFrame$3.class
200500824115\build\classes\ChatMainJFrame$4.class
200500824115\build\classes\ChatMainJFrame.class
200500824115\build\classes\classes.zip
200500824115\build\classes\Ip.class
200500824115\build\classes\Scan.class
200500824115\build\classes\ScanOne.class
200500824115\build\classes\Server.class
200500824115\build\classes\StopJDialog$1.class
200500824115\build\classes\StopJDialog.class
200500824115\dist\lib\beansbinding-1.2.1.jar
200500824115\dist\200500824115.exe
200500824115\dist\200500824115.jar
200500824115\dist\README.TXT
200500824115\nbproject\private\private.properties
200500824115\nbproject\private\private.xml
200500824115\nbproject\build-impl.xml
200500824115\nbproject\genfiles.properties
200500824115\nbproject\project.properties
200500824115\nbproject\project.xml
200500824115\src\ChatJFrame.form
200500824115\src\ChatJFrame.java
200500824115\src\ChatMainJFrame.form
200500824115\src\ChatMainJFrame.java
.....too many files .....)