Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 C 中设置 UNIX 套接字文件描述符的套接字缓冲区大小?我知道 setsockopt 可能是涉及的系统调用......谁能举一个如何使用它的例子,我发现的那个没有解释如何设置缓冲区大小?
在 Ubuntu 14.04 Linux 上查看,并man 7 socket专门查看.SO_RCVBUFSO_SNDBUF
man 7 socket
SO_RCVBUF
SO_SNDBUF