- 论坛徽章:
- 36
|
看一下 sendmsg 调用的入口参数
ssize_t sendmsg(int s, const struct msghdr *msg, int flags);
最后一个参数 flags 的解释中谈到了 MSG_MORE
MSG_MORE (Since Linux 2.4.4)
The caller has more data to send. This flag is used with TCP sockets to obtain the same effect as the TCP_CORK socket option (see tcp(7)), with
the difference that this flag can be set on a per-call basis.
Since Linux 2.6, this flag is also supported for UDP sockets, and informs the kernel to package all of the data sent in calls with this flag set
into a single datagram which is only transmitted when a call is performed that does not specify this flag. (See also the UDP_CORK socket option
described in udp(7).) |
|