Function libzt::zts_getsockname[][src]

pub unsafe extern "C" fn zts_getsockname(
    fd: c_int,
    local_addr_str: *mut c_char,
    len: c_int,
    port: *mut c_ushort
) -> c_int
Expand description

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

@param fd Socket file descriptor @param local_addr_str Destination buffer to contain name (address) of the local 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