diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2020-10-01 21:13:43 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2020-11-12 16:57:45 +0100 |
commit | 8bf864c25bda97c1448b709a76a168834753ff86 (patch) | |
tree | 6ffccc18a3c112e035235c596006f8b13aca1be7 /src/transport/plugin_transport_tcp.c | |
parent | 8fd7531e5841c9d9f80f821a3490a05934fee933 (diff) | |
download | gnunet-8bf864c25bda97c1448b709a76a168834753ff86.tar.gz gnunet-8bf864c25bda97c1448b709a76a168834753ff86.zip |
adding the messenger service and its client-side library
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index e3bc21543..8378a64dd 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2010,8 +2010,8 @@ do_transmit (void *cls, size_t size, void *buf) | |||
2010 | GNUNET_assert (pos->message_size <= session->bytes_in_queue); | 2010 | GNUNET_assert (pos->message_size <= session->bytes_in_queue); |
2011 | session->bytes_in_queue -= pos->message_size; | 2011 | session->bytes_in_queue -= pos->message_size; |
2012 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2012 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2013 | "Failed to transmit %u byte message to `%s'.\n", | 2013 | "Failed to transmit %lu byte message to `%s'.\n", |
2014 | pos->message_size, | 2014 | (unsigned long) pos->message_size, |
2015 | GNUNET_i2s (&session->target)); | 2015 | GNUNET_i2s (&session->target)); |
2016 | ret += pos->message_size; | 2016 | ret += pos->message_size; |
2017 | GNUNET_CONTAINER_DLL_insert_after (hd, tl, tl, pos); | 2017 | GNUNET_CONTAINER_DLL_insert_after (hd, tl, tl, pos); |
@@ -2067,9 +2067,9 @@ do_transmit (void *cls, size_t size, void *buf) | |||
2067 | session->bytes_in_queue -= pos->message_size; | 2067 | session->bytes_in_queue -= pos->message_size; |
2068 | GNUNET_assert (size >= pos->message_size); | 2068 | GNUNET_assert (size >= pos->message_size); |
2069 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2069 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2070 | "Transmitting message of type %u size %u to peer %s at %s\n", | 2070 | "Transmitting message of type %u size %lu to peer %s at %s\n", |
2071 | ntohs (((struct GNUNET_MessageHeader *) pos->msg)->type), | 2071 | ntohs (((struct GNUNET_MessageHeader *) pos->msg)->type), |
2072 | pos->message_size, | 2072 | (unsigned long) pos->message_size, |
2073 | GNUNET_i2s (&session->target), | 2073 | GNUNET_i2s (&session->target), |
2074 | tcp_plugin_address_to_string (session->plugin, | 2074 | tcp_plugin_address_to_string (session->plugin, |
2075 | session->address->address, | 2075 | session->address->address, |
@@ -2192,8 +2192,8 @@ tcp_plugin_send (void *cls, | |||
2192 | pm->transmit_cont_cls = cont_cls; | 2192 | pm->transmit_cont_cls = cont_cls; |
2193 | 2193 | ||
2194 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2194 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2195 | "Asked to transmit %u bytes to `%s', added message to list.\n", | 2195 | "Asked to transmit %lu bytes to `%s', added message to list.\n", |
2196 | msgbuf_size, | 2196 | (unsigned long) msgbuf_size, |
2197 | GNUNET_i2s (&session->target)); | 2197 | GNUNET_i2s (&session->target)); |
2198 | 2198 | ||
2199 | if (GNUNET_YES == | 2199 | if (GNUNET_YES == |