Struct enet_sys::_ENetHost [] [src]

#[repr(C)]
pub struct _ENetHost { pub socket: ENetSocket, pub address: ENetAddress, pub incomingBandwidth: enet_uint32, pub outgoingBandwidth: enet_uint32, pub bandwidthThrottleEpoch: enet_uint32, pub mtu: enet_uint32, pub randomSeed: enet_uint32, pub recalculateBandwidthLimits: c_int, pub peers: *mut ENetPeer, pub peerCount: usize, pub channelLimit: usize, pub serviceTime: enet_uint32, pub dispatchQueue: ENetList, pub continueSending: c_int, pub packetSize: usize, pub headerFlags: enet_uint16, pub commands: [ENetProtocol; 32], pub commandCount: usize, pub buffers: [ENetBuffer; 65], pub bufferCount: usize, pub checksum: ENetChecksumCallback, pub compressor: ENetCompressor, pub packetData: [[enet_uint8; 4096]; 2], pub receivedAddress: ENetAddress, pub receivedData: *mut enet_uint8, pub receivedDataLength: usize, pub totalSentData: enet_uint32, pub totalSentPackets: enet_uint32, pub totalReceivedData: enet_uint32, pub totalReceivedPackets: enet_uint32, pub intercept: ENetInterceptCallback, pub connectedPeers: usize, pub bandwidthLimitedPeers: usize, pub duplicatePeers: usize, pub maximumPacketSize: usize, pub maximumWaitingData: usize, }

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

< Internet address of the host

< downstream bandwidth of the host

< upstream bandwidth of the host

< array of peers allocated for this host

< number of peers allocated for this host

< maximum number of channels allowed for connected peers

< callback the user can set to enable packet checksums for this host

< total data sent, user should reset to 0 as needed to prevent overflow

< total UDP packets sent, user should reset to 0 as needed to prevent overflow

< total data received, user should reset to 0 as needed to prevent overflow

< total UDP packets received, user should reset to 0 as needed to prevent overflow

< callback the user can set to intercept received raw UDP packets

< optional number of allowed peers from duplicate IPs, defaults to ENET_PROTOCOL_MAXIMUM_PEER_ID

< the maximum allowable packet size that may be sent or received on a peer

< the maximum aggregate amount of buffer space a peer may use waiting for packets to be delivered

Trait Implementations

impl Copy for _ENetHost
[src]

impl Clone for _ENetHost
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for _ENetHost

impl !Sync for _ENetHost