diff options
author | eihrul <eihrul> | 2005-05-24 06:08:30 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2005-05-24 06:08:30 +0000 |
commit | 59d5c26e3811e0ebfa4878e29886d8f4aadbdd6f (patch) | |
tree | 2a9afaa8f7a13b368a5c9be587f8443dfcc01efc /include | |
parent | 2ef761a8d25b5e79005fd25054090ccb2777317e (diff) | |
download | enet-59d5c26e3811e0ebfa4878e29886d8f4aadbdd6f.tar.gz enet-59d5c26e3811e0ebfa4878e29886d8f4aadbdd6f.zip |
minimum and maximum timeout
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index b497409..b855018 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -167,8 +167,10 @@ enum ENET_PEER_PACKET_LOSS_INTERVAL = 10000, ENET_PEER_WINDOW_SIZE_SCALE = 64 * 1024, ENET_PEER_TIMEOUT_LIMIT = 32, + ENET_PEER_TIMEOUT_MINIMUM = 3000, + ENET_PEER_TIMEOUT_MAXIMUM = 30000, ENET_PEER_PING_INTERVAL = 500, - ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 4 * 32 + ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 4 * 32, }; typedef struct _ENetChannel @@ -206,6 +208,7 @@ typedef struct _ENetPeer enet_uint32 lastSendTime; enet_uint32 lastReceiveTime; enet_uint32 nextTimeout; + enet_uint32 earliestTimeout; enet_uint32 packetLossEpoch; enet_uint32 packetsSent; enet_uint32 packetsLost; |