Function libzt::zts_set_linger[][src]

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

@brief Enable or disable SO_LINGER while also setting its value

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