[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r4853 - GNUnet/src/applications/session
From: |
gnunet |
Subject: |
[GNUnet-SVN] r4853 - GNUnet/src/applications/session |
Date: |
Tue, 29 May 2007 00:47:54 -0600 (MDT) |
Author: grothoff
Date: 2007-05-29 00:47:54 -0600 (Tue, 29 May 2007)
New Revision: 4853
Modified:
GNUnet/src/applications/session/connect.c
Log:
count encrypted pongs properly
Modified: GNUnet/src/applications/session/connect.c
===================================================================
--- GNUnet/src/applications/session/connect.c 2007-05-29 06:33:51 UTC (rev
4852)
+++ GNUnet/src/applications/session/connect.c 2007-05-29 06:47:54 UTC (rev
4853)
@@ -63,6 +63,8 @@
static int stat_sessionEstablished;
+static int stat_pongSent;
+
/**
* @brief message for session key exchange.
*/
@@ -741,6 +743,8 @@
&enc);
#endif
ping->type = htons(p2p_PROTO_PONG);
+ if (stats != NULL)
+ stats->change(stat_pongSent, 1);
coreAPI->unicast(sender,
ping,
EXTREME_PRIORITY,
@@ -756,6 +760,8 @@
&enc);
#endif
ping->type = htons(p2p_PROTO_PONG);
+ if (stats != NULL)
+ stats->change(stat_pongSent, 1);
exchangeKey(sender,
tsession,
ping); /* ping is now pong */
@@ -870,6 +876,8 @@
= stats->create(gettext_noop("# session keys accepted"));
stat_sessionEstablished
= stats->create(gettext_noop("# sessions established"));
+ stat_pongSent
+ = stats->create(gettext_noop("# encrypted PONG messages sent"));
}
GE_LOG(ectx,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r4853 - GNUnet/src/applications/session,
gnunet <=