Retrieves a socket option.
fn getsockopt(sockfd: i32, level: i32, optname: i32, optval: &mut [u8], optlen: &mut usize) -> i32
| Name | Description |
|---|---|
| sockfd | The socket. |
| level | The level of the option. |
| optname | The name of the option. |
| optval | The buffer in which the value will be stored. |
| optlen | A place into which the length of the value will be stored. |
Returns success or an error value.