![]() Server side socket - /tmp/unix_sock.sock and client side socket - /tmp/unix_client_sock. The client and server socket paths are chosen as below for the sample programs:.The Internet UDP socket is considered unreliable, however, since the UNIX UDP socket is confined to the host system, Unix Domain UDP sockets are reliable. ![]() This is different from a stream Unix Domain socket wherein the server and client connect to two ends of the same path and only the server binds to the socket path.In an UDP socket – each end (server socket and client socket) connect to separate paths and the server and client use bind API to connect to their respective socket paths.Instead of an IP address – a socket path for the server and the client is required.Unix domain sockets may use the file system as their address. The API for Unix domain sockets is similar to that of an Internet socket, but rather than using an underlying network protocol, all communication occurs entirely within the operating system kernel. The differences between the AF_INET socket and the Unix Domain Datagram socket are as follows The Unix domain socket facility is a standard component of POSIX operating systems. The Unix Domain UDP Socket Connection follows the same method and APIs as the internet (AF_INET) UDP Socket connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |