socket.getRecvBufferSize()


  • 返回 <number> SO_RCVBUF socket 接收到的 buffer 的大小,以字节为单位。

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.

  • Returns: <number> the SO_RCVBUF socket receive buffer size in bytes.

This method throws ERR_SOCKET_BUFFER_SIZE if called on an unbound socket.