(no commit message)
authorNathan S. Evans <evans@in.tum.de>
Thu, 21 Jan 2010 14:25:17 +0000 (14:25 +0000)
committerNathan S. Evans <evans@in.tum.de>
Thu, 21 Jan 2010 14:25:17 +0000 (14:25 +0000)
src/transport/plugin_transport_tcp.c
src/transport/plugin_transport_udp.c
src/transport/transport_api.c

index aef5d0b39128577ee415b384e64f80f3ab9144ad..23ed867b7ad73a33bcdecca2fe68a4fc24922f95 100644 (file)
@@ -516,8 +516,7 @@ disconnect_session (struct Session *session)
          know about this one, so we need to 
          notify transport service about disconnect */
       session->plugin->env->receive (session->plugin->env->cls,
-                                     NULL,
-                                     &session->target,
+                                     &session->target, NULL,
                                      1,
                                     session->connect_addr,
                                     session->connect_alen);
@@ -1093,7 +1092,7 @@ handle_tcp_data (void *cls,
                   (unsigned int) msize,
                    (unsigned int) ntohs (msg->type));
 #endif
-  plugin->env->receive (plugin->env->cls, message, &session->target, 1,
+  plugin->env->receive (plugin->env->cls, &session->target, message, 1,
                        session->connect_addr,
                        session->connect_alen);
   /* update bandwidth used */
index e9e243969acc9fbe0aeccb1e922060e61b450feb..4520a71f98dd72027ed1b4eb3470418019bd6eb1 100644 (file)
@@ -331,7 +331,7 @@ udp_plugin_select (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                        ntohs (hdr->type));
 #endif
       plugin->env->receive (plugin->env->cls,
-          &msg->header, sender, UDP_DIRECT_DISTANCE, (char *)&addr, fromlen);
+          sender, &msg->header, UDP_DIRECT_DISTANCE, (char *)&addr, fromlen);
 
       GNUNET_free (sender);
       GNUNET_free (buf);
index 8bf2cf621add078e7d804553fae0f423c999428b..998aded459680ddd13378376f0d87665b0dcb0e3 100644 (file)
@@ -778,6 +778,7 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle,
  * A "get_hello" request has timed out.  Signal the client
  * and clean up.
  */
+#if 0
 static void
 hello_wait_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
@@ -821,7 +822,7 @@ hello_wait_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
     hwl->rec (hwl->rec_cls, NULL);
   GNUNET_free (hwl);
 }
-
+#endif
 
 /**
  * Obtain the HELLO message for this peer.