Type Alias riot_sys::sock_tcp_cb_t
source · pub type sock_tcp_cb_t = Option<unsafe extern "C" fn(sock: *mut sock_tcp_t, flags: sock_async_flags_t, arg: *mut c_void)>;
Expand description
@brief Event callback for @ref sock_tcp_t
@pre (sock != NULL)
@note Only applicable with @ref SOCK_HAS_ASYNC defined.
@param[in] sock The sock the event happened on @param[in] flags The event flags. Expected values are - @ref SOCK_ASYNC_CONN_RDY, - @ref SOCK_ASYNC_CONN_FIN, - @ref SOCK_ASYNC_MSG_RECV, - @ref SOCK_ASYNC_MSG_SENT, - @ref SOCK_ASYNC_PATH_PROP, or - a combination of them. @param[in] arg Argument provided when setting the callback using @ref sock_tcp_set_cb(). May be NULL.
Aliased Type§
enum sock_tcp_cb_t {
None,
Some(unsafe extern "C" fn(_: *mut sock_tcp, _: u8, _: *mut c_void)),
}