ENetEvent

Type Alias ENetEvent 

Source
pub type ENetEvent = _ENetEvent;
Expand description

An ENet event as returned by enet_host_service().

@sa enet_host_service

Aliased Type§

#[repr(C)]
pub struct ENetEvent { pub type_: u32, pub peer: *mut _ENetPeer, pub channelID: u8, pub data: u32, pub packet: *mut _ENetPacket, }

Fields§

§type_: u32

< type of the event

§peer: *mut _ENetPeer

< peer that generated a connect, disconnect or receive event

§channelID: u8

< channel on the peer that generated the event, if appropriate

§data: u32

< data associated with the event, if appropriate

§packet: *mut _ENetPacket

< packet associated with the event, if appropriate