ENet  v1.3.13
Reliable UDP networking library
Data Fields
_ENetHost Struct Reference

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_uint8receivedData
 
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...
 

Detailed Description

An ENet host for communicating with peers.

No fields should be modified unless otherwise stated.

See also
enet_host_create()
enet_host_destroy()
enet_host_connect()
enet_host_service()
enet_host_flush()
enet_host_broadcast()
enet_host_compress()
enet_host_compress_with_range_coder()
enet_host_channel_limit()
enet_host_bandwidth_limit()
enet_host_bandwidth_throttle()

Field Documentation

◆ address

ENetAddress _ENetHost::address

Internet address of the host.

◆ bandwidthLimitedPeers

size_t _ENetHost::bandwidthLimitedPeers

◆ bandwidthThrottleEpoch

enet_uint32 _ENetHost::bandwidthThrottleEpoch

◆ bufferCount

size_t _ENetHost::bufferCount

◆ buffers

◆ channelLimit

size_t _ENetHost::channelLimit

maximum number of channels allowed for connected peers

◆ checksum

ENetChecksumCallback _ENetHost::checksum

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

◆ commandCount

size_t _ENetHost::commandCount

◆ commands

ENetProtocol _ENetHost::commands[ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS]

◆ compressor

ENetCompressor _ENetHost::compressor

◆ connectedPeers

size_t _ENetHost::connectedPeers

◆ continueSending

int _ENetHost::continueSending

◆ dispatchQueue

ENetList _ENetHost::dispatchQueue

◆ duplicatePeers

size_t _ENetHost::duplicatePeers

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

◆ headerFlags

enet_uint16 _ENetHost::headerFlags

◆ incomingBandwidth

enet_uint32 _ENetHost::incomingBandwidth

downstream bandwidth of the host

◆ intercept

ENetInterceptCallback _ENetHost::intercept

callback the user can set to intercept received raw UDP packets

◆ maximumPacketSize

size_t _ENetHost::maximumPacketSize

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

◆ maximumWaitingData

size_t _ENetHost::maximumWaitingData

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

◆ mtu

enet_uint32 _ENetHost::mtu

◆ outgoingBandwidth

enet_uint32 _ENetHost::outgoingBandwidth

upstream bandwidth of the host

◆ packetData

enet_uint8 _ENetHost::packetData[2][ENET_PROTOCOL_MAXIMUM_MTU]

◆ packetSize

size_t _ENetHost::packetSize

◆ peerCount

size_t _ENetHost::peerCount

number of peers allocated for this host

◆ peers

ENetPeer* _ENetHost::peers

array of peers allocated for this host

◆ randomSeed

enet_uint32 _ENetHost::randomSeed

◆ recalculateBandwidthLimits

int _ENetHost::recalculateBandwidthLimits

◆ receivedAddress

ENetAddress _ENetHost::receivedAddress

◆ receivedData

enet_uint8* _ENetHost::receivedData

◆ receivedDataLength

size_t _ENetHost::receivedDataLength

◆ serviceTime

enet_uint32 _ENetHost::serviceTime

◆ socket

ENetSocket _ENetHost::socket

◆ totalReceivedData

enet_uint32 _ENetHost::totalReceivedData

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

◆ totalReceivedPackets

enet_uint32 _ENetHost::totalReceivedPackets

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

◆ totalSentData

enet_uint32 _ENetHost::totalSentData

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

◆ totalSentPackets

enet_uint32 _ENetHost::totalSentPackets

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


The documentation for this struct was generated from the following file: