diff options
author | Lee Salzman <[email protected]> | 2023-02-04 22:16:19 -0500 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2023-02-04 22:16:19 -0500 |
commit | d7e5470cf7dd4858a9da90aa92a79ea82754ffde (patch) | |
tree | 317644bca18756e6e8d9ba1cd45227a850e8fdbc /include | |
parent | bb788ea48bf06184e1553da4e0375a9994ab34d3 (diff) | |
download | enet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.tar.gz enet-d7e5470cf7dd4858a9da90aa92a79ea82754ffde.zip |
maintain a separate queue for outgoing send reliable packets
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 522e30d..0dd7589 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -174,6 +174,7 @@ typedef struct _ENetOutgoingCommand enet_uint32 fragmentOffset; enet_uint16 fragmentLength; enet_uint16 sendAttempts; + enet_uint32 queueTime; ENetProtocol command; ENetPacket * packet; } ENetOutgoingCommand; @@ -315,6 +316,7 @@ typedef struct _ENetPeer ENetList sentReliableCommands; ENetList sentUnreliableCommands; ENetList outgoingCommands; + ENetList outgoingSendReliableCommands; ENetList dispatchedCommands; enet_uint16 flags; enet_uint16 reserved; @@ -399,6 +401,7 @@ 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; /** @@ -590,6 +593,7 @@ ENET_API void enet_peer_disconnect_later (ENetPeer *, enet_uint32 ENET_API void enet_peer_throttle_configure (ENetPeer *, enet_uint32, enet_uint32, enet_uint32); extern int enet_peer_throttle (ENetPeer *, enet_uint32); extern void enet_peer_reset_queues (ENetPeer *); +extern int enet_peer_has_outgoing_commands (ENetPeer *); extern void enet_peer_setup_outgoing_command (ENetPeer *, ENetOutgoingCommand *); extern ENetOutgoingCommand * enet_peer_queue_outgoing_command (ENetPeer *, const ENetProtocol *, ENetPacket *, enet_uint32, enet_uint16); extern ENetIncomingCommand * enet_peer_queue_incoming_command (ENetPeer *, const ENetProtocol *, const void *, size_t, enet_uint32, enet_uint32); |