to compile : linux : gcc -wall -o foo foo.c solaris : gcc -wall -o foo foo.c -lsocket -lnsl 1. udp udp server : simple udp server that prints received messages. source : udpserver.c usage : ./udpserver udp client : simple udp client that sends data to server. source : udpclient.c usage : ./udpclient server data1 ... datan 2. tcp tcp server : simple tcp server that prints received messages. source : tcpserver.c usage : ./tcpserver tcp client : simple tcp client that sends data to server. source : tcpclient.c usage : ./tcpclient server data1 ... datan 3. ip multicast multicast server : simple multicast server that prints received messages. source : mcastserver.c usage : ./mcastserver multicast_group multicast client : simple multicast client that sends data on multicast group. source : mcastclient.c usage : ./mcastclient multicast_group data1 ... datan 4. miscellaneous mac address finder : programs that uses a ioctl() call to find out a mac address in the arp cache. (same function as arp -a) source : getmac.c os tested : linux 2 usage : ./getmac interface_ip_address