socket.setSendBufferSize(size)
size
<integer>
设置 SO_SNDBUF
套接字选项。设置最大套接字发送缓冲区(以字节为单位)。
¥Sets the SO_SNDBUF
socket option. Sets the maximum socket send buffer
in bytes.
如果在未绑定的套接字上调用此方法将抛出 ERR_SOCKET_BUFFER_SIZE
。
¥This method throws ERR_SOCKET_BUFFER_SIZE
if called on an unbound socket.