Function libzt::zts_bind[][src]

pub unsafe extern "C" fn zts_bind(
    fd: c_int,
    ipstr: *const c_char,
    port: c_ushort
) -> c_int
Expand description

@brief Bind a socket to a local address

@param fd Socket file descriptor @param ipstr Human-readable IP string @param port Port @return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno