Type Definition gnunet_sys::GNUNET_SCHEDULER_select[][src]

type GNUNET_SCHEDULER_select = Option<unsafe extern "C" fn(cls: *mut c_void, rfds: *mut GNUNET_NETWORK_FDSet, wfds: *mut GNUNET_NETWORK_FDSet, efds: *mut GNUNET_NETWORK_FDSet, timeout: GNUNET_TIME_Relative) -> c_int>;

Signature of the select function used by the scheduler. #GNUNET_NETWORK_socket_select matches it.

@param cls closure @param rfds set of sockets to be checked for readability @param wfds set of sockets to be checked for writability @param efds set of sockets to be checked for exceptions @param timeout relative value when to return @return number of selected sockets, #GNUNET_SYSERR on error