There is a big diference bween the two socket.
The Unix domain socket just copy the data from one process to another process.
It does not through the TCP/UDP and IP layer, so there is no packaging and unpackaging.
This socket is also reliable .
As U know, because of the difference we have said above, we can know easy that there is also a difference of the address the two sockets use.
the detail U can see some examples codes.
本文探讨了Unix域套接字与传统网络套接字之间的主要区别。Unix域套接字直接在进程间进行数据传输,绕过了网络层,因此无需打包与拆包过程,提供了一种高效可靠的数据传输方式。文章还提到了这两种套接字使用的地址差异,并建议读者通过查看示例代码进一步理解。
4783

被折叠的 条评论
为什么被折叠?



