aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-11-30 17:03:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-11-30 17:03:18 +0000
commit6075973b278f72f81de967c978706e80d6b79978 (patch)
tree1443390224810e04f7086e6978531df1ec6a957b /src/transport/transport_api.c
parent00345f593b114c6d1b96e1c16e8c17e4a7c5aa1d (diff)
downloadgnunet-6075973b278f72f81de967c978706e80d6b79978.tar.gz
gnunet-6075973b278f72f81de967c978706e80d6b79978.zip
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r--src/transport/transport_api.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index 6ac64260b..3d35f8d0b 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -1597,11 +1597,17 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
1597 GNUNET_break (0); 1597 GNUNET_break (0);
1598 return; 1598 return;
1599 } 1599 }
1600 fprintf(stderr,"transport_api GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT ats_count %u\n",ntohl (cim->ats_count));
1600 n->is_connected = GNUNET_YES; 1601 n->is_connected = GNUNET_YES;
1601 if (h->nc_cb != NULL) 1602 if (h->nc_cb != NULL)
1603 h->nc_cb (h->cls, &n->id,
1604 NULL,
1605 0);
1606
1607 /* FIX if (h->nc_cb != NULL)
1602 h->nc_cb (h->cls, &n->id, 1608 h->nc_cb (h->cls, &n->id,
1603 &(cim->ats), 1609 &(cim->ats),
1604 ntohl (cim->ats_count)); 1610 ntohl (cim->ats_count));*/
1605 break; 1611 break;
1606 case GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT: 1612 case GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT:
1607 if (size != sizeof (struct DisconnectInfoMessage)) 1613 if (size != sizeof (struct DisconnectInfoMessage))
@@ -1697,11 +1703,17 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
1697 GNUNET_break (0); 1703 GNUNET_break (0);
1698 return; 1704 return;
1699 } 1705 }
1706 fprintf(stderr,"transport_api GNUNET_MESSAGE_TYPE_TRANSPORT_RECV ats_count %u\n",ntohl (im->ats_count));
1700 if (h->rec != NULL) 1707 if (h->rec != NULL)
1708 h->rec (h->cls, &im->peer,
1709 imm,
1710 NULL,
1711 0);
1712 /* FIX
1701 h->rec (h->cls, &im->peer, 1713 h->rec (h->cls, &im->peer,
1702 imm, 1714 imm,
1703 &im->ats, 1715 &im->ats,
1704 ntohl (im->ats_count)); 1716 ntohl (im->ats_count));*/
1705 break; 1717 break;
1706 default: 1718 default:
1707 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1719 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,