ScummVM API documentation
_ENetHost Struct Reference

#include <enet.h>

Public Attributes

ENetSocket socket
 
ENetAddress address
 
enet_uint32 incomingBandwidth
 
enet_uint32 outgoingBandwidth
 
enet_uint32 bandwidthThrottleEpoch
 
enet_uint32 mtu
 
enet_uint32 randomSeed
 
int recalculateBandwidthLimits
 
ENetPeerpeers
 
size_t peerCount
 
size_t channelLimit
 
enet_uint32 serviceTime
 
ENetList dispatchQueue
 
int continueSending
 
size_t packetSize
 
enet_uint16 headerFlags
 
ENetProtocol commands [ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS]
 
size_t commandCount
 
ENetBuffer buffers [(1+2 *ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)]
 
size_t bufferCount
 
ENetChecksumCallback checksum
 
ENetCompressor compressor
 
enet_uint8 packetData [2][ENET_PROTOCOL_MAXIMUM_MTU]
 
ENetAddress receivedAddress
 
enet_uint8 * receivedData
 
size_t receivedDataLength
 
enet_uint32 totalSentData
 
enet_uint32 totalSentPackets
 
enet_uint32 totalReceivedData
 
enet_uint32 totalReceivedPackets
 
ENetInterceptCallback intercept
 
size_t connectedPeers
 
size_t bandwidthLimitedPeers
 
size_t duplicatePeers
 
size_t maximumPacketSize
 
size_t maximumWaitingData
 

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

Member Data Documentation

◆ address

ENetAddress _ENetHost::address

Internet address of the host

◆ incomingBandwidth

enet_uint32 _ENetHost::incomingBandwidth

downstream bandwidth of the host

◆ outgoingBandwidth

enet_uint32 _ENetHost::outgoingBandwidth

upstream bandwidth of the host

◆ peers

ENetPeer* _ENetHost::peers

array of peers allocated for this host

◆ peerCount

size_t _ENetHost::peerCount

number of peers allocated for this host

◆ 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

◆ 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

◆ 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

◆ intercept

ENetInterceptCallback _ENetHost::intercept

callback the user can set to intercept received raw UDP packets

◆ duplicatePeers

size_t _ENetHost::duplicatePeers

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

◆ 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


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