aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-30 13:44:41 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-30 13:44:41 +0000
commit3f57a586d9ef059d582e75bc6037ba289c63c081 (patch)
treeb1069510743f73abb19eb4c4e28465ee4c0e2ec4 /src/transport/transport_api.c
parentdaf67b4f110e259ef9f4c6a106358b27cea27ab9 (diff)
downloadgnunet-3f57a586d9ef059d582e75bc6037ba289c63c081.tar.gz
gnunet-3f57a586d9ef059d582e75bc6037ba289c63c081.zip
track ATS in core
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index 30294de92..10a023dcf 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -1591,12 +1591,9 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
1591 GNUNET_break (n->is_connected == GNUNET_NO); 1591 GNUNET_break (n->is_connected == GNUNET_NO);
1592 n->is_connected = GNUNET_YES; 1592 n->is_connected = GNUNET_YES;
1593 if (h->nc_cb != NULL) 1593 if (h->nc_cb != NULL)
1594 h->nc_cb (h->cls, &n->id, &(cim->ats), cim->ats_count); 1594 h->nc_cb (h->cls, &n->id,
1595/* 1595 &(cim->ats),
1596 h->nc_cb (h->cls, &n->id, 1596 cim->ats_count);
1597 GNUNET_TIME_relative_ntoh (cim->latency),
1598 ntohl (cim->distance));
1599*/
1600 break; 1597 break;
1601 case GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT: 1598 case GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT:
1602 if (size != sizeof (struct DisconnectInfoMessage)) 1599 if (size != sizeof (struct DisconnectInfoMessage))
@@ -1688,8 +1685,10 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
1688 break; 1685 break;
1689 } 1686 }
1690 if (h->rec != NULL) 1687 if (h->rec != NULL)
1691 h->rec (h->cls, &im->peer, imm, &im->ats, im->ats_count); 1688 h->rec (h->cls, &im->peer,
1692 //h->rec (h->cls, &im->peer, imm, GNUNET_TIME_relative_ntoh (im->latency), ntohl(im->distance)); 1689 imm,
1690 &im->ats,
1691 im->ats_count);
1693 break; 1692 break;
1694 default: 1693 default:
1695 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1694 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,