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