(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 30 Nov 2010 17:03:18 +0000 (17:03 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 30 Nov 2010 17:03:18 +0000 (17:03 +0000)
src/transport/transport_api.c

index 6ac64260bd8d3171224d0be1521289256d361659..3d35f8d0b496429389ef55b1e75c5103590070ee 100644 (file)
@@ -1597,11 +1597,17 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
          GNUNET_break (0);
          return;
        }
+      fprintf(stderr,"transport_api GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT ats_count %u\n",ntohl (cim->ats_count));
       n->is_connected = GNUNET_YES;
       if (h->nc_cb != NULL)
+                 h->nc_cb (h->cls, &n->id,
+                   NULL,
+                   0);
+
+     /* FIX if (h->nc_cb != NULL)
          h->nc_cb (h->cls, &n->id,
                    &(cim->ats), 
-                   ntohl (cim->ats_count));
+                   ntohl (cim->ats_count));*/
       break;
     case GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT:
       if (size != sizeof (struct DisconnectInfoMessage))
@@ -1697,11 +1703,17 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
          GNUNET_break (0);
          return;
        }
+      fprintf(stderr,"transport_api GNUNET_MESSAGE_TYPE_TRANSPORT_RECV ats_count %u\n",ntohl (im->ats_count));
       if (h->rec != NULL)
+               h->rec (h->cls, &im->peer,
+                       imm,
+                       NULL,
+                       0);
+    /* FIX
        h->rec (h->cls, &im->peer, 
                imm, 
                &im->ats, 
-               ntohl (im->ats_count));
+               ntohl (im->ats_count));*/
       break;
     default:
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,