谁会/proc或者SO_RCVBUF啊?

johnhawke 2004-08-19 03:42:07
这里有段话,是我在写ip_queue的程序的时候遇到的
> When using the ip_queue module from Netfilter I sometimes get this error:
>
> Failed to receive netlink message: No buffer space available
>
> Is it possible to make those kernel buffers bigger so that I don't run
> into this problem?
>
Yes, these are standard Netlink sockets, and you can tune their receive
buffer sizes via /proc, or use the SO_RCVBUF socket option on the file
descriptor.
这是一个外国论坛上拷贝下来的答复,可惜我看不懂他这段答复怎么用:(
我想知道file descriptor如何跟/proc和SO_RCVBUF连起来,应该怎么解释这句话,他们怎
么工作可以设置缓存大小
哪位大侠知道的请给我解释一下,谢谢
...全文
139 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
craks 2004-08-19
  • 打赏
  • 举报
回复
setsockopt(..,SO_RCVBUF,..)

23,124

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧