enet library

Classes

ENet
Provides a high-level interface for initializing and interacting with the ENet networking library.
ENetAddress
Represents a network address used within the ENet library.
ENetEvent
An ENet event as returned by ENetHost.service.
ENetHost
Enet host to service.
ENetPacket
An ENetPacket that may be sent to or received from a peer.
ENetPeer
An ENet peer which data packets may be sent or received from.

Enums

ENetEventType
An ENet event type, as specified in ENetEvent.
ENetPacketFlag
Packet flag bit constants.
ENetPeerState
Tracks the connection lifecycle of a peer.

Constants

ENET_MAX_HOST_NAME → const int
The maximum length for an ENet host name (including the null-terminator). This value is typically used to define the maximum allowed size for the host name in ENet operations.
ENET_PEER_PACKET_THROTTLE_ACCELERATION → const int
The acceleration factor for packet throttling on a peer. This value controls how quickly the throttle interval decreases when the peer is sending packets at a high rate.
ENET_PEER_PACKET_THROTTLE_DECELERATION → const int
The deceleration factor for packet throttling on a peer. This value controls how quickly the throttle interval increases when the peer is sending packets at a low rate or if packet congestion occurs.
ENET_PEER_PACKET_THROTTLE_INTERVAL → const int
The time interval (in milliseconds) used for packet throttling on a peer. This value determines the rate at which the peer can send packets, and is used as part of the throttling mechanism to manage traffic.
ENET_PEER_TIMEOUT_LIMIT → const int
The timeout limit for a peer's connection, expressed in milliseconds. This is typically used to determine how long to wait before considering the peer to have timed out. A value of 32 may indicate no timeout limit.
ENET_PEER_TIMEOUT_MAXIMUM → const int
The maximum allowed timeout for a peer's connection, expressed in milliseconds. This value is used to set the maximum threshold for timeouts. A value of 30000 may indicate that no maximum timeout is enforced.
ENET_PEER_TIMEOUT_MINIMUM → const int
The minimum allowed timeout for a peer's connection, expressed in milliseconds. This value is used to set the minimum threshold for timeouts. A value of 5000 may indicate that no minimum timeout is enforced.