aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authoreihrul <eihrul>2010-05-14 23:41:14 +0000
committereihrul <eihrul>2010-05-14 23:41:14 +0000
commit72525fbca19d4a643ae1e0547947d4d6fa32f4b4 (patch)
tree72cdff8f56a93333d4f7655e33719635dd81653c /include
parent94a1e8879fd98719fcac0ba28df84c5b72d52178 (diff)
downloadenet-72525fbca19d4a643ae1e0547947d4d6fa32f4b4.tar.gz
enet-72525fbca19d4a643ae1e0547947d4d6fa32f4b4.zip
added totalSentData, totalSentPackets, totalReceivedData, totalReceivedPackets
Diffstat (limited to 'include')
-rw-r--r--include/enet/enet.h4
1 files changed, 4 insertions, 0 deletions
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;
/**