int socket(int family, int type, int protocol)familyis UNIX Socket Familiestypeis a UNIX Socket Connection Typeprotocolis set to protocol if SOCK_RAW is set Will return a File Descriptor for the socket
Example
int tcpfd = socket(PF_INET, SOCK_STREAM, 0);
int udpfd = socket(PF_INET, SOCK_DGRAM, 0);