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