Function libzt::zts_accept [−][src]
pub unsafe extern "C" fn zts_accept(
fd: c_int,
remote_addr: *mut c_char,
len: c_int,
port: *mut c_ushort
) -> c_int
Expand description
@brief Accept an incoming connection
@param fd Socket file descriptor
@param remote_addr Buffer that will receive remote host IP string
@param len Size of buffer that will receive remote host IP string
(must be exactly ZTS_IP_MAX_STR_LEN
)
@param port Port number of the newly connected remote host (value-result)
@return New file descriptor if successful, ZTS_ERR_SERVICE
if the node
experiences a problem, ZTS_ERR_ARG
if invalid argument. Sets zts_errno