Function libzt::zts_set_keepalive [−][src]
pub unsafe extern "C" fn zts_set_keepalive(fd: c_int, enabled: c_int) -> c_int
Expand description
@brief Enable or disable SO_KEEPALIVE
@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