[][src]Function linux::syscall::getsockname

pub fn getsockname(sockfd: c_int, addr: &mut [d8], addrlen: &mut usize) -> c_int

Retrieves the address a socket is bound to.

[argument, sockfd] The socket.

[argument, addr] The buffer into which the address is placed.

[argument, addrlen] A place into which the length of the address is placed.

[return_value] Returns success or an error value.

= See also

  • link:man:getsockname(2)