Sets a socket option.
fn setsockopt(sockfd: i32, level: i32, optname: i32, optval: &[u8]) -> i32
| Name | Description |
|---|---|
| sockfd | The socket. |
| level | The level of the option. |
| optname | The name of the option. |
| optval | The value to set. |
Returns success or an error value.