Function libzt::zts_set_no_delay[][src]

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

@brief Enable or disable TCP_NODELAY. Enabling this is equivalent to turning off Nagle’s algorithm

@param fd Socket file descriptor @param enabled [0, 1] integer value @return ZTS_ERR_OK if successful, ZTS_ERR_SERVICE if the node experiences a problem, ZTS_ERR_ARG if invalid argument. Sets zts_errno