add sender argument to GCCH_handle_local_data so we can implement loopback
authorChristian Grothoff <christian@grothoff.org>
Mon, 23 Jan 2017 13:31:40 +0000 (14:31 +0100)
committerChristian Grothoff <christian@grothoff.org>
Mon, 23 Jan 2017 13:31:40 +0000 (14:31 +0100)
src/cadet/gnunet-service-cadet-new.c
src/cadet/gnunet-service-cadet-new_channel.c
src/cadet/gnunet-service-cadet-new_channel.h

index c9a2fb437fd30bc0d1c10dd99aaf1d11e23eaeb3..ef0870158336ac7e28e6a41d1d82f1386e623ae5 100644 (file)
@@ -715,6 +715,7 @@ handle_data (void *cls,
        GCCH_2s (ch));
   if (GNUNET_OK !=
       GCCH_handle_local_data (ch,
+                              c,
                               buf,
                               payload_size))
   {
index e7a13157bb1122208fc7167c76f1f4702115038b..3d52c67af15fc9f8e7e1bb88208403a87ebd5786 100644 (file)
@@ -1327,6 +1327,7 @@ data_sent_cb (void *cls)
  * buffer space in the tunnel.
  *
  * @param ch Channel.
+ * @param sender client sending the data
  * @param buf payload to transmit.
  * @param buf_len number of bytes in @a buf
  * @return #GNUNET_OK if everything goes well,
@@ -1334,6 +1335,7 @@ data_sent_cb (void *cls)
  */
 int
 GCCH_handle_local_data (struct CadetChannel *ch,
+                        struct CadetClient *sender,
                         const char *buf,
                         size_t buf_len)
 {
index a473fd3e4e501e3944ff23f8080878c6831e2591..99124f6517e6bd64e1d489a18d330b42a500d868 100644 (file)
@@ -220,6 +220,7 @@ GCCH_handle_remote_destroy (struct CadetChannel *ch);
  * buffer space in the tunnel.
  *
  * @param ch Channel.
+ * @param sender client sending the data
  * @param buf payload to transmit.
  * @param buf_len number of bytes in @a buf
  * @return #GNUNET_OK if everything goes well,
@@ -227,6 +228,7 @@ GCCH_handle_remote_destroy (struct CadetChannel *ch);
  */
 int
 GCCH_handle_local_data (struct CadetChannel *ch,
+                        struct CadetClient *sender,
                         const char *buf,
                         size_t buf_len);