socket.setSendBufferSize(size)


设置 SO_SNDBUF 套接字选项。 设置最大套接字发送缓冲区(以字节为单位)。

如果在未绑定的套接字上调用此方法将抛出 ERR_SOCKET_BUFFER_SIZE

Sets the SO_SNDBUF socket option. Sets the maximum socket send buffer in bytes.

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.