This can be contrasted with a stream socket, where if the sender wrote a 100 byte message, the receiver could read it in two chunks of 50 bytes or 100 chunks of one byte.
对比字符流,当发送者发送100字节时,接收者可以选择接受分两次,每次50字节进行接受,还是一次性接受100字节。
SOCK_SEQPACKET socket is just like a SOCK_STREAM socket except that we get a message-based service instead of a byte-stream service.
套接口sock_seqpacket类似于SOCK_STREAM套接口,不同的是我们得到的是一个基于消息的服务,而不是一个字节流服务。
SOCK_SEQPACKET socket is just like a SOCK_STREAM socket except that we get a message-based service instead of a byte-stream service.
套接口sock_seqpacket类似于SOCK_STREAM套接口,不同的是我们得到的是一个基于消息的服务,而不是一个字节流服务。
应用推荐