|
Q & A on Identifying UNIX protocol family connections Q: I noticed that there is a special Unix protocol family (PF_UNIX) that allows a socket to correspond to a Unix pipe. However, the socket structure sockaddr_in doesn't have a field for a Unix path name (i.e., a string) so I can specify a path. How is this possible?
A: As you point out, because the socket API is quite general, it
allows one to use sockets for local communication as well as Internet
communication. However, structure
As you can see, the Unix form of the structure includes a provision for a path name. |