socket [function]
socket( int addrfamily, int socktype, int protocol )
create a socket with the specified parameters
addrfamily
requires one of AF_ constants
socktype
requires one of SOCK_ constants
protocol
requires one of IPPROTO_ constants
- a valid socket object is returned on success