[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16023 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16023 - gnunet/src/transport |
Date: |
Fri, 15 Jul 2011 16:06:37 +0200 |
Author: grothoff
Date: 2011-07-15 16:06:37 +0200 (Fri, 15 Jul 2011)
New Revision: 16023
Modified:
gnunet/src/transport/gnunet-service-transport.c
Log:
trying to do something about 1728
Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c 2011-07-15 14:01:15 UTC
(rev 16022)
+++ gnunet/src/transport/gnunet-service-transport.c 2011-07-15 14:06:37 UTC
(rev 16023)
@@ -2228,7 +2228,7 @@
GNUNET_PEERINFO_add_peer (peerinfo, our_hello);
for (npos = neighbours; npos != NULL; npos = npos->next)
{
- if (! npos->received_pong)
+ if (GNUNET_YES != npos->received_pong)
continue;
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
@@ -4883,7 +4883,10 @@
/* notify all clients about disconnect */
if (GNUNET_YES == n->received_pong)
- notify_clients_disconnect (&n->id);
+ {
+ n->received_pong = GNUNET_NO;
+ notify_clients_disconnect (&n->id);
+ }
ats_modify_problem_state(ats, ATS_MODIFIED);
@@ -5450,7 +5453,7 @@
break;
case GNUNET_MESSAGE_TYPE_TRANSPORT_PING:
handle_ping (plugin, message, peer, session, sender_address,
sender_address_len);
- if (! n->received_pong)
+ if (GNUNET_YES != n->received_pong)
transmit_plain_ping (n);
break;
case GNUNET_MESSAGE_TYPE_TRANSPORT_PONG:
@@ -5560,10 +5563,10 @@
{
if (GNUNET_YES == n->received_pong)
{
- (&(cim->ats))[0].type = htonl
(GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
- (&(cim->ats))[0].value = htonl (n->distance);
- (&(cim->ats))[1].type = htonl
(GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY);
- (&(cim->ats))[1].value = htonl ((uint32_t) n->latency.rel_value);
+ (&cim->ats)[0].type = htonl
(GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
+ (&cim->ats)[0].value = htonl (n->distance);
+ (&cim->ats)[1].type = htonl
(GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY);
+ (&cim->ats)[1].value = htonl ((uint32_t) n->latency.rel_value);
cim->id = n->id;
transmit_to_client (c, &cim->header, GNUNET_NO);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16023 - gnunet/src/transport,
gnunet <=