aboutsummaryrefslogtreecommitdiffhomepage
path: root/host.c
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 /host.c
parent94a1e8879fd98719fcac0ba28df84c5b72d52178 (diff)
downloadenet-72525fbca19d4a643ae1e0547947d4d6fa32f4b4.tar.gz
enet-72525fbca19d4a643ae1e0547947d4d6fa32f4b4.zip
added totalSentData, totalSentPackets, totalReceivedData, totalReceivedPackets
Diffstat (limited to 'host.c')
-rw-r--r--host.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/host.c b/host.c
index 9edceb2..67accd9 100644
--- a/host.c
+++ b/host.c
@@ -79,6 +79,11 @@ enet_host_create (const ENetAddress * address, size_t peerCount, enet_uint32 inc
host -> receivedAddress.port = 0;
host -> receivedDataLength = 0;
+ host -> totalSentData = 0;
+ host -> totalSentPackets = 0;
+ host -> totalReceivedData = 0;
+ host -> totalReceivedPackets = 0;
+
enet_list_clear (& host -> dispatchQueue);
for (currentPeer = host -> peers;