diff options
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 15 |
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, |