home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UUUUNNNNIIIIXXXX((((7777FFFF)))) UUUUNNNNIIIIXXXX((((7777FFFF))))
-
-
-
- NNNNAAAAMMMMEEEE
- unix - UNIX-domain protocol family
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ttttyyyyppppeeeessss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////uuuunnnn....hhhh>>>>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The UNIX-domain protocol family is a collection of protocols that
- provides local (on-machine) interprocess communication through the normal
- _s_o_c_k_e_t(2) mechanisms. The UNIX-domain family supports the SOCK_STREAM
- and SOCK_DGRAM socket types and uses filesystem pathnames for addressing.
-
- AAAADDDDDDDDRRRREEEESSSSSSSSIIIINNNNGGGG
- UNIX-domain addresses are variable-length filesystem pathnames of at most
- 108 characters. The include file <_s_y_s/_u_n._h> defines this address:
-
- struct sockaddr_un {
- short sun_family;
- char sun_path[108];
- };
-
- Binding a name to a UNIX-domain socket with _b_i_n_d(2) causes a socket file
- to be created in the filesystem. This file is _n_o_t removed when the
- socket is closed - _u_n_l_i_n_k(2) must be used to remove the file.
-
- The UNIX-domain does not support broadcast addressing or any form of
- "wildcard" matching on incoming messages. All addresses are absolute- or
- relative-pathnames of other UNIX-domain sockets. Normal filesystem
- access-control mechanisms are also applied when referencing pathnames;
- e.g., the destination of a _c_o_n_n_e_c_t(2) or _s_e_n_d_t_o(2) must be writable.
-
- PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLLSSSS
- The UNIX-domain protocol family is comprised of simple transport
- protocols that support the SOCK_STREAM and SOCK_DGRAM abstractions.
- SOCK_STREAM sockets also support the communication of file descriptors
- through the use of the _m_s_g__a_c_c_r_i_g_h_t_s field in the _m_s_g argument to
- _s_e_n_d_m_s_g(2) and _r_e_c_v_m_s_g(2). Any valid descriptor may be sent in a
- message. The received descriptor is a _d_u_p_l_i_c_a_t_e of the sender's
- descriptor, as if it were created with a call to _d_u_p(2). Per-process
- descriptor flags, set with _f_c_n_t_l(2), are _n_o_t passed to a receiver.
- Descriptors that are awaiting delivery, or that are purposely not
- received, are automatically closed by the system when the destination
- socket is closed.
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- The _b_i_n_d(2) and _c_o_n_n_e_c_t(2) socket operations may fail with one of the
- following errors returned:
-
- [ENOTDIR] A component of the path prefix is not a directory.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- UUUUNNNNIIIIXXXX((((7777FFFF)))) UUUUNNNNIIIIXXXX((((7777FFFF))))
-
-
-
- [ENOENT] The named file does not exist.
-
- [EACCES] Search permission is denied for a component of the
- path prefix.
-
- [ENAMETOOLONG] The length of _p_a_t_h exceeds {_P_A_T_H__M_A_X}, or a pathname
- component is longer than {_N_A_M_E__M_A_X}.
-
- [ELOOP] Too many symbolic links were encountered in
- translating the pathname.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- socket(2), netintro(7)
- _I_R_I_X _N_e_t_w_o_r_k _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-