From 72525fbca19d4a643ae1e0547947d4d6fa32f4b4 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 14 May 2010 23:41:14 +0000 Subject: added totalSentData, totalSentPackets, totalReceivedData, totalReceivedPackets --- include/enet/enet.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/enet/enet.h b/include/enet/enet.h index 04b416e..7d4ac33 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -322,6 +322,10 @@ typedef struct _ENetHost ENetAddress receivedAddress; enet_uint8 receivedData [ENET_PROTOCOL_MAXIMUM_MTU]; size_t receivedDataLength; + enet_uint32 totalSentData; /**< total data sent, user should reset to 0 as needed to prevent overflow */ + enet_uint32 totalSentPackets; /**< total UDP packets sent, user should reset to 0 as needed to prevent overflow */ + enet_uint32 totalReceivedData; /**< total data received, user should reset to 0 as needed to prevent overflow */ + enet_uint32 totalReceivedPackets; /**< total UDP packets received, user should reset to 0 as needed to prevent overflow */ } ENetHost; /** -- cgit v1.2.3