Sets the maximal receive buffer size of this socket.
impl Socket {
fn set_recv_buffer_size(&self, size: usize) -> Result<(), Errno>
}| Name | Description |
|---|---|
| size | The maximal receive buffer size of this socket. |
The argument must be representable in a c_int. The value will be doubled by the kernel and this doubled value will be returned by a call to recv_buffer_size.
socket(7) and SO_RCVBUF therein