csatblogspotdotcom

Monday, February 15, 2016

Unix domain socket or IPC socket (inter-process communication socket) and named pipes

参考 https://en.wikipedia.org/wiki/Unix_domain_socket https://en.wikipedia.org/wiki/Inter-process_communication Unix domain socket or IPC socket (inter-process communication socket) 进程间通信,其具体实现有多种方式,named pipes就是一种方式 Like named pipes, Unix domain sockets support transmission of a reliable stream of bytes (SOCK_STREAM, compare to TCP). In addition, they support ordered and reliable transmission of datagrams (SOCK_SEQPACKET), or unordered and unreliable transmission of datagrams (SOCK_DGRAM, compare to UDP). Unix domain sockets支持可靠的字节流,就像TCP一样,此外还支持有序的可靠的datagrams的传输,按我的理解,就像IP对数据包进行分段一样,每个分段有序号,到达目的地之后再按序还原,此外还有无序不可靠的例如UDP

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home