A stream socket (SOCK_STREAM, the TCP protocol) carries a reliable, ordered sequence of bytes between two connected endpoints; a datagram socket (SOCK_DGRAM, the UDP protocol) carries separate messages, each addressed on its own.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Stream socket, datagram socket?
又称: stream socket · datagram socket