Three types of address are distinguished in the sockaddr_un Getpeername(2), recvfrom(2), and accept(2)) return an Some other system calls (for example, getsockname(2), Various systems calls (for example, bind(2),Ĭonnect(2), and sendto(2)) take a sockaddr_un argumentĪs input. Linux, sun_path is 108 bytes in size see also BUGS, below. The sun_family field always contains AF_UNIX. Address formatĪ UNIX domain socket address is represented in the following ![]() UNIX domain sockets support passing file descriptors or processĬredentials to other processes using ancillary data. Messages in the order that they were sent. That is connection-oriented, preserves message boundaries, and delivers That preserves message boundaries (as on most UNIX implementations, UNIXĭomain datagram sockets are always reliable and don't reorder datagrams) Īnd (since Linux 2.6.4) SOCK_SEQPACKET, for a sequenced-packet socket Valid socket types in the UNIX domain are: SOCK_STREAM, forĪ stream-oriented socket SOCK_DGRAM, for a datagram-oriented socket Linux also supports anĪbstract namespace which is independent of the filesystem. ![]() ![]() Traditionally, UNIX domain sockets can be either unnamed, or bound to aįilesystem pathname (marked as being of type socket). Is used to communicate between processes on the same machine efficiently. The AF_UNIX (also known as AF_LOCAL) socket family Unix - sockets for local interprocess communication SYNOPSIS #include #include unix_socket = socket(AF_UNIX, type, 0) error = socketpair(AF_UNIX, type, 0, int * sv ) DESCRIPTION
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |