Function libzt::zts_bsd_getpeername[][src]

pub unsafe extern "C" fn zts_bsd_getpeername(
    fd: c_int,
    addr: *mut zts_sockaddr,
    addrlen: *mut zts_socklen_t
) -> c_int
Expand description

@brief Get the name (address) of the remote end of the socket

@param fd Socket file descriptor @param addr Name associated with remote end of this socket @param addrlen Length of name @return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno