diff options
author | lsalzman <[email protected]> | 2012-05-29 19:05:34 -0700 |
---|---|---|
committer | lsalzman <[email protected]> | 2012-05-29 19:05:34 -0700 |
commit | ea8faf35798e94657af3da5bffe70841971a3995 (patch) | |
tree | f53281cf0d0e895410f9da5b5c525b858b35c997 /include | |
parent | fb55c5d7c3a293388932081e0d7b139a82193804 (diff) | |
download | enet-ea8faf35798e94657af3da5bffe70841971a3995.tar.gz enet-ea8faf35798e94657af3da5bffe70841971a3995.zip |
added per-peer configurable ping interval and timeouts
1.3.4 release prep
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 14f9382..97d8638 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -25,7 +25,7 @@ extern "C" #define ENET_VERSION_MAJOR 1 #define ENET_VERSION_MINOR 3 -#define ENET_VERSION_PATCH 3 +#define ENET_VERSION_PATCH 4 #define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch)) #define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH) @@ -269,6 +269,10 @@ typedef struct _ENetPeer enet_uint32 packetThrottleAcceleration; enet_uint32 packetThrottleDeceleration; enet_uint32 packetThrottleInterval; + enet_uint32 pingInterval; + enet_uint32 timeoutLimit; + enet_uint32 timeoutMinimum; + enet_uint32 timeoutMaximum; enet_uint32 lastRoundTripTime; enet_uint32 lowestRoundTripTime; enet_uint32 lastRoundTripTimeVariance; @@ -517,6 +521,8 @@ extern void enet_host_bandwidth_throttle (ENetHost *); ENET_API int enet_peer_send (ENetPeer *, enet_uint8, ENetPacket *); ENET_API ENetPacket * enet_peer_receive (ENetPeer *, enet_uint8 * channelID); ENET_API void enet_peer_ping (ENetPeer *); +ENET_API void enet_peer_ping_interval (ENetPeer *, enet_uint32); +ENET_API void enet_peer_timeout (ENetPeer *, enet_uint32, enet_uint32, enet_uint32); ENET_API void enet_peer_reset (ENetPeer *); ENET_API void enet_peer_disconnect (ENetPeer *, enet_uint32); ENET_API void enet_peer_disconnect_now (ENetPeer *, enet_uint32); |