Chinaunix

标题: Solaris上,socket recv 缓冲区默认大小是多少? [打印本页]

作者: sinall    时间: 2008-07-04 11:03
提示: 作者被禁止或删除 内容自动屏蔽
作者: scutan    时间: 2008-07-04 11:06
recv+参数MSG_WAITALL
作者: sinall    时间: 2008-07-04 11:14
提示: 作者被禁止或删除 内容自动屏蔽
作者: scutan    时间: 2008-07-04 11:58
标题: 回复 #3 sinall 的帖子
修改缓冲区可以使用 SO_RCVBUF 选项来修改,但是你的recv也并不是一定会等到缓冲区装满之后才返回。
而MSG_WAITALL标志位的作用是:

MSG_WAITALL
This flag was introduced with 4.3BSD Reno. It tells the kernel not to return from a read operation until the requested number of bytes have been read.

作者: sinall    时间: 2008-07-04 12:12
提示: 作者被禁止或删除 内容自动屏蔽
作者: sinall    时间: 2008-07-04 15:40
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2