Introduction - If you have any usage issues, please Google them yourself
3 pairs of sample codes for basic net apps: . Socket server/client . start the server first . DatagramSocket . start MyDatagramSocketA first . MyDatagramSocketA receive a packet first, and then send a reply MyDatagramSocketA send a packet first, and then receive a reply. . Multicast sender/receiver . start the receiver first
Packet : 417791javanettest.rar filelist
NetTest
NetTest\NetTest.jpx.local
NetTest\NetTest.jpx
NetTest\src
NetTest\src\MySocket.java
NetTest\src\MyServerSocket.java
NetTest\src\MyDatagramSocketB.java
NetTest\src\MyDatagramSocketA.java
NetTest\src\MyMulticastReceiver.java
NetTest\src\MyMulticastSender.java