Function libzt::zts_getpeername [−][src]
pub unsafe extern "C" fn zts_getpeername(
fd: c_int,
remote_addr_str: *mut c_char,
len: c_int,
port: *mut c_ushort
) -> c_int
Expand description
@brief Get the name (address) of the remote end of the socket
@param fd Socket file descriptor
@param remote_addr_str Destination buffer to contain name (address) of the remote end of the socket
@param len Length of destination buffer
@param port Value-result parameter that will contain resultant port number
@return ZTS_ERR_OK
if successful, ZTS_ERR_ARG
if invalid argument. Sets zts_errno