(Platforms and Compilers Most of the code in this article was compiled successfully with GNU's gcc on a Linux PC. And they have successfully compiled with gcc on an HPUX. Note, however, that not every code snippet has been independently tested. -------------------------------------------------- ------------------------------Contents: What is a socket? Two types of network theory structs for Internet sockets--either understand them, or wait for aliens to invade/invade the earth ConverttheNatives! IP addresses and how to manage them socket()--get file descriptors! bind()--Which port are you on? connect()--Hello! listen() -- is someone calling me? accept()--Thankyouforcallingport3490.send() and recv()--Talktome, baby!sendto() and recvfrom()--Talktome, DGRAM-styleclose() and shutdown()--Go away! getpeername()--who are you? getH/OSTname()--Who am I? DNS--You said "White House", I said 198.137.240.100 Client-Server Background knowledge Simple server Simple client datagram Socket blocking select()--multi-channel synchronous I/O, cool! ReferencesDisclaimerandCallforHelp)