[−][src]Struct enet_sys::_ENetHost
An ENet host for communicating with peers.
No fields should be modified unless otherwise stated.
@sa enet_host_create() @sa enet_host_destroy() @sa enet_host_connect() @sa enet_host_service() @sa enet_host_flush() @sa enet_host_broadcast() @sa enet_host_compress() @sa enet_host_compress_with_range_coder() @sa enet_host_channel_limit() @sa enet_host_bandwidth_limit() @sa enet_host_bandwidth_throttle()
Fields
socket: ENetSocket
address: ENetAddress
< Internet address of the host
incomingBandwidth: enet_uint32
< downstream bandwidth of the host
outgoingBandwidth: enet_uint32
< upstream bandwidth of the host
bandwidthThrottleEpoch: enet_uint32
mtu: enet_uint32
randomSeed: enet_uint32
recalculateBandwidthLimits: c_int
peers: *mut ENetPeer
< array of peers allocated for this host
peerCount: usize
< number of peers allocated for this host
channelLimit: usize
< maximum number of channels allowed for connected peers
serviceTime: enet_uint32
dispatchQueue: ENetList
continueSending: c_int
packetSize: usize
headerFlags: enet_uint16
commands: [ENetProtocol; 32]
commandCount: usize
buffers: [ENetBuffer; 65]
bufferCount: usize
checksum: ENetChecksumCallback
< callback the user can set to enable packet checksums for this host
compressor: ENetCompressor
packetData: [[enet_uint8; 4096]; 2]
receivedAddress: ENetAddress
receivedData: *mut enet_uint8
receivedDataLength: usize
totalSentData: enet_uint32
< total data sent, user should reset to 0 as needed to prevent overflow
totalSentPackets: enet_uint32
< total UDP packets sent, user should reset to 0 as needed to prevent overflow
totalReceivedData: enet_uint32
< total data received, user should reset to 0 as needed to prevent overflow
totalReceivedPackets: enet_uint32
< total UDP packets received, user should reset to 0 as needed to prevent overflow
intercept: ENetInterceptCallback
< callback the user can set to intercept received raw UDP packets
connectedPeers: usize
bandwidthLimitedPeers: usize
duplicatePeers: usize
< optional number of allowed peers from duplicate IPs, defaults to ENET_PROTOCOL_MAXIMUM_PEER_ID
maximumPacketSize: usize
< the maximum allowable packet size that may be sent or received on a peer
maximumWaitingData: usize
< the maximum aggregate amount of buffer space a peer may use waiting for packets to be delivered
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,