![]() This is the Unix domain socket that we will discuss today. So can we directly use the files generated by these programs to interact with the data between different programs? The answer is yes. In fact, the biggest difference is that everything in the unix operating system can be regarded as a file, including some information about the operation of the program. Let’s consider the common windows system and unix system, where is the biggest difference between them? ![]() What is a Unix domain socket? We can see from the name that this socket is related to the unix domain, which means that this socket needs to use some special functions under unix. Such a socket is the Unix domain socket that we will be talking about today. This article explains a special socket that does not require a traditional IP address and port, but uses the file system for data interaction between programs, and can only be used on unix systems. ![]() Both sockets have one common feature, that is, they require an IP address and a port to establish a connection between the client and the server. Stream Socket and Datagram Socket are usually based on tcp and udp protocols for data transfer respectively.
0 Comments
Leave a Reply. |