arceos_posix_api

Function sys_getpeername

Source
pub unsafe fn sys_getpeername(
    sock_fd: c_int,
    addr: *mut sockaddr,
    addrlen: *mut socklen_t,
) -> c_int
Available on crate feature net only.
Expand description

Get peer address to which the socket sockfd is connected.