To create a socket in the file namespace, use the constant
PF_FILE as the namespace argument to
socketpair. This constant is defined in `sys/socket.h'.
PF_FILE, for compatibility's sake.
The structure for specifying socket names in the file namespace is defined in the header file `sys/un.h':
short int sun_family
AF_FILEto designate the file namespace. See section Socket Addresses.
allocato allocate an appropriate amount of storage based on the length of the filename.
You should compute the length parameter for a socket address in
the file namespace as the sum of the size of the
component and the string length (not the allocation size!) of
the file name string.
Go to the first, previous, next, last section, table of contents.