There are four types of sockets available in POSIX API: TCP, UDP, UNIX, and (optionally) RAW. Unix domain sockets may act like stream sockets or like datagram sockets.
Some of endpoint types:
struct sockaddr - universal endpoint type. Typically, other concrete endpoint types are converted to thi...