Function libzt::node::zts_set_blocking[][src]

pub unsafe extern "C" fn zts_set_blocking(fd: c_int, enabled: c_int) -> c_int
Expand description

@brief Change blocking behavior O_NONBLOCK

@param fd Socket file descriptor @param enabled [0, 1] integer value, 1 maintains default behavior, 0 sets to non-blocking mode @return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno