An ENet host for communicating with peers. More...
#include <enet.h>
Data Fields | |
ENetAddress | address |
Internet address of the host. More... | |
size_t | bandwidthLimitedPeers |
enet_uint32 | bandwidthThrottleEpoch |
size_t | bufferCount |
ENetBuffer | buffers [(1+2 *ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)] |
size_t | channelLimit |
maximum number of channels allowed for connected peers More... | |
ENetChecksumCallback | checksum |
callback the user can set to enable packet checksums for this host More... | |
size_t | commandCount |
ENetProtocol | commands [ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS] |
ENetCompressor | compressor |
size_t | connectedPeers |
int | continueSending |
ENetList | dispatchQueue |
size_t | duplicatePeers |
optional number of allowed peers from duplicate IPs, defaults to ENET_PROTOCOL_MAXIMUM_PEER_ID More... | |
enet_uint16 | headerFlags |
enet_uint32 | incomingBandwidth |
downstream bandwidth of the host More... | |
ENetInterceptCallback | intercept |
callback the user can set to intercept received raw UDP packets More... | |
size_t | maximumPacketSize |
the maximum allowable packet size that may be sent or received on a peer More... | |
size_t | maximumWaitingData |
the maximum aggregate amount of buffer space a peer may use waiting for packets to be delivered More... | |
enet_uint32 | mtu |
enet_uint32 | outgoingBandwidth |
upstream bandwidth of the host More... | |
enet_uint8 | packetData [2][ENET_PROTOCOL_MAXIMUM_MTU] |
size_t | packetSize |
size_t | peerCount |
number of peers allocated for this host More... | |
ENetPeer * | peers |
array of peers allocated for this host More... | |
enet_uint32 | randomSeed |
int | recalculateBandwidthLimits |
ENetAddress | receivedAddress |
enet_uint8 * | receivedData |
size_t | receivedDataLength |
enet_uint32 | serviceTime |
ENetSocket | socket |
enet_uint32 | totalReceivedData |
total data received, user should reset to 0 as needed to prevent overflow More... | |
enet_uint32 | totalReceivedPackets |
total UDP packets received, user should reset to 0 as needed to prevent overflow More... | |
enet_uint32 | totalSentData |
total data sent, user should reset to 0 as needed to prevent overflow More... | |
enet_uint32 | totalSentPackets |
total UDP packets sent, user should reset to 0 as needed to prevent overflow More... | |
An ENet host for communicating with peers.
No fields should be modified unless otherwise stated.
ENetAddress _ENetHost::address |
Internet address of the host.
size_t _ENetHost::bandwidthLimitedPeers |
enet_uint32 _ENetHost::bandwidthThrottleEpoch |
size_t _ENetHost::bufferCount |
ENetBuffer _ENetHost::buffers[(1+2 *ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)] |
size_t _ENetHost::channelLimit |
maximum number of channels allowed for connected peers
ENetChecksumCallback _ENetHost::checksum |
callback the user can set to enable packet checksums for this host
size_t _ENetHost::commandCount |
ENetProtocol _ENetHost::commands[ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS] |
ENetCompressor _ENetHost::compressor |
size_t _ENetHost::connectedPeers |
int _ENetHost::continueSending |
ENetList _ENetHost::dispatchQueue |
size_t _ENetHost::duplicatePeers |
optional number of allowed peers from duplicate IPs, defaults to ENET_PROTOCOL_MAXIMUM_PEER_ID
enet_uint16 _ENetHost::headerFlags |
enet_uint32 _ENetHost::incomingBandwidth |
downstream bandwidth of the host
ENetInterceptCallback _ENetHost::intercept |
callback the user can set to intercept received raw UDP packets
size_t _ENetHost::maximumPacketSize |
the maximum allowable packet size that may be sent or received on a peer
size_t _ENetHost::maximumWaitingData |
the maximum aggregate amount of buffer space a peer may use waiting for packets to be delivered
enet_uint32 _ENetHost::mtu |
enet_uint32 _ENetHost::outgoingBandwidth |
upstream bandwidth of the host
enet_uint8 _ENetHost::packetData[2][ENET_PROTOCOL_MAXIMUM_MTU] |
size_t _ENetHost::packetSize |
size_t _ENetHost::peerCount |
number of peers allocated for this host
ENetPeer* _ENetHost::peers |
array of peers allocated for this host
enet_uint32 _ENetHost::randomSeed |
int _ENetHost::recalculateBandwidthLimits |
ENetAddress _ENetHost::receivedAddress |
enet_uint8* _ENetHost::receivedData |
size_t _ENetHost::receivedDataLength |
enet_uint32 _ENetHost::serviceTime |
ENetSocket _ENetHost::socket |
enet_uint32 _ENetHost::totalReceivedData |
total data received, user should reset to 0 as needed to prevent overflow
enet_uint32 _ENetHost::totalReceivedPackets |
total UDP packets received, user should reset to 0 as needed to prevent overflow
enet_uint32 _ENetHost::totalSentData |
total data sent, user should reset to 0 as needed to prevent overflow
enet_uint32 _ENetHost::totalSentPackets |
total UDP packets sent, user should reset to 0 as needed to prevent overflow