Added example functions I found on Wikibooks

http://en.wikibooks.org/wiki/C_Programming/Networking_in_UNIX