Type Alias enet_sys::ENetInterceptCallback
source · pub type ENetInterceptCallback = Option<unsafe extern "C" fn(host: *mut _ENetHost, event: *mut _ENetEvent) -> c_int>;
Expand description
Callback for intercepting received raw UDP packets. Should return 1 to intercept, 0 to ignore, or -1 to propagate an error.
Aliased Type§
enum ENetInterceptCallback {
None,
Some(unsafe extern "C" fn(_: *mut _ENetHost, _: *mut _ENetEvent) -> i32),
}