Socket Programming in C/C++
Socket are characterized by their domain, type and transport
protocol. Common domains are:
I AF UNIX: address format is UNIX pathname
I AF INET: address format is host and port number
Common types are:
virtual circuit: received in order transmitted and reliably
datagram: arbitrary order, unreliable