diff options
author | Lee Salzman <[email protected]> | 2023-02-04 22:48:18 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2023-02-04 22:48:18 -0500 |
commit | ca18dfb8f8f442808add71464f893c9da40afc56 (patch) | |
tree | b4767ead6a8358b1997794de755d30730c1997a6 /include | |
parent | d7e5470cf7dd4858a9da90aa92a79ea82754ffde (diff) | |
download | enet-ca18dfb8f8f442808add71464f893c9da40afc56.tar.gz enet-ca18dfb8f8f442808add71464f893c9da40afc56.zip |
avoid revisiting peers when continuing to send
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 0dd7589..b52a629 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -254,7 +254,8 @@ typedef struct _ENetChannel typedef enum _ENetPeerFlag { - ENET_PEER_FLAG_NEEDS_DISPATCH = (1 << 0) + ENET_PEER_FLAG_NEEDS_DISPATCH = (1 << 0), + ENET_PEER_FLAG_CONTINUE_SENDING = (1 << 1) } ENetPeerFlag; /** @@ -378,7 +379,7 @@ typedef struct _ENetHost size_t channelLimit; /**< maximum number of channels allowed for connected peers */ enet_uint32 serviceTime; ENetList dispatchQueue; - int continueSending; + enet_uint32 totalQueued; size_t packetSize; enet_uint16 headerFlags; ENetProtocol commands [ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS]; @@ -401,7 +402,6 @@ typedef struct _ENetHost size_t duplicatePeers; /**< optional number of allowed peers from duplicate IPs, defaults to ENET_PROTOCOL_MAXIMUM_PEER_ID */ size_t maximumPacketSize; /**< the maximum allowable packet size that may be sent or received on a peer */ size_t maximumWaitingData; /**< the maximum aggregate amount of buffer space a peer may use waiting for packets to be delivered */ - enet_uint32 totalQueued; } ENetHost; /** |