Type Alias riot_sys::sock_tcp_queue_cb_t

source ·
pub type sock_tcp_queue_cb_t = Option<unsafe extern "C" fn(queue: *mut sock_tcp_queue_t, flags: sock_async_flags_t, arg: *mut c_void)>;
Expand description

@brief Event callback for @ref sock_tcp_queue_t

@pre (queue != NULL)

@note Only applicable with @ref SOCK_HAS_ASYNC defined.

@param[in] queue The TCP listening queue the event happened on @param[in] flags The event flags. The only expected value is @ref SOCK_ASYNC_CONN_RECV. @param[in] arg Argument provided when setting the callback using @ref sock_tcp_queue_set_cb(). May be NULL.

Aliased Type§

enum sock_tcp_queue_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut sock_tcp_queue, _: u8, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut sock_tcp_queue, _: u8, _: *mut c_void))

Some value of type T.