[][src]Function linux::syscall::getsockopt

pub fn getsockopt(
    sockfd: c_int,
    level: c_int,
    optname: c_int,
    optval: &mut [d8],
    optlen: &mut usize
) -> c_int

Retrieves a socket option.

[argument, sockfd] The socket.

[argument, level] The level of the option.

[argument, optname] The name of the option.

[argument, optval] The buffer in which the value will be stored.

[argument, optlen] A place into which the length of the value will be stored.

[return_value] Returns success or an error value.

= See also

  • link:man:getsockopt(2)