pomp_socket_cb_t

Type Alias pomp_socket_cb_t 

Source
pub type pomp_socket_cb_t = Option<unsafe extern "C" fn(ctx: *mut pomp_ctx, fd: c_int, kind: pomp_socket_kind, userdata: *mut c_void)>;
Expand description

Context socket callback. If set, will be called after socket is created. @param ctx : context. @param fd : socket fd. @param kind : socket kind. @param userdata : user data given in pomp_ctx_new.

Aliased Type§

pub enum pomp_socket_cb_t {
    None,
    Some(unsafe extern "C" fn(*mut pomp_ctx, i32, u32, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut pomp_ctx, i32, u32, *mut c_void))

Some value of type T.