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()

Members

Variables

address
ENetAddress address;

< Internet address of the host

bandwidthLimitedPeers
size_t bandwidthLimitedPeers;
Undocumented in source.
bandwidthThrottleEpoch
enet_uint32 bandwidthThrottleEpoch;
Undocumented in source.
bufferCount
size_t bufferCount;
Undocumented in source.
buffers
ENetBuffer[ENET_BUFFER_MAXIMUM] buffers;
Undocumented in source.
channelLimit
size_t channelLimit;

< maximum number of channels allowed for connected peers

checksum
ENetChecksumCallback checksum;

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

commandCount
size_t commandCount;
Undocumented in source.
commands
ENetProtocol[ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS] commands;
Undocumented in source.
compressor
ENetCompressor compressor;
Undocumented in source.
connectedPeers
size_t connectedPeers;
Undocumented in source.
continueSending
int continueSending;
Undocumented in source.
dispatchQueue
ENetList dispatchQueue;
Undocumented in source.
duplicatePeers
size_t duplicatePeers;

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

headerFlags
enet_uint16 headerFlags;
Undocumented in source.
incomingBandwidth
enet_uint32 incomingBandwidth;

< downstream bandwidth of the host

intercept
ENetInterceptCallback intercept;

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

maximumPacketSize
size_t maximumPacketSize;

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

maximumWaitingData
size_t maximumWaitingData;

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

mtu
enet_uint32 mtu;
Undocumented in source.
outgoingBandwidth
enet_uint32 outgoingBandwidth;

< upstream bandwidth of the host

packetData
enet_uint8[ENET_PROTOCOL_MAXIMUM_MTU][2] packetData;
Undocumented in source.
packetSize
size_t packetSize;
Undocumented in source.
peerCount
size_t peerCount;

< number of peers allocated for this host

peers
ENetPeer* peers;

< array of peers allocated for this host

randomSeed
enet_uint32 randomSeed;
Undocumented in source.
recalculateBandwidthLimits
int recalculateBandwidthLimits;
Undocumented in source.
receivedAddress
ENetAddress receivedAddress;
Undocumented in source.
receivedData
enet_uint8* receivedData;
Undocumented in source.
receivedDataLength
size_t receivedDataLength;
Undocumented in source.
serviceTime
enet_uint32 serviceTime;
Undocumented in source.
socket
ENetSocket socket;
Undocumented in source.
totalReceivedData
enet_uint32 totalReceivedData;

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

totalReceivedPackets
enet_uint32 totalReceivedPackets;

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

totalSentData
enet_uint32 totalSentData;

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

totalSentPackets
enet_uint32 totalSentPackets;

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

Meta