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_udp.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_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index ec3a0edd8..49e84dfe7 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -1821,7 +1821,8 @@ enqueue_fragment (void *cls, const struct GNUNET_MessageHeader *msg) | |||
1821 | struct GNUNET_ATS_Session *session = frag_ctx->session; | 1821 | struct GNUNET_ATS_Session *session = frag_ctx->session; |
1822 | size_t msg_len = ntohs (msg->size); | 1822 | size_t msg_len = ntohs (msg->size); |
1823 | 1823 | ||
1824 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Enqueuing fragment with %u bytes\n", msg_len); | 1824 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Enqueuing fragment with %lu bytes\n", |
1825 | (unsigned long) msg_len); | ||
1825 | udpw = GNUNET_malloc (sizeof(struct UDP_MessageWrapper) + msg_len); | 1826 | udpw = GNUNET_malloc (sizeof(struct UDP_MessageWrapper) + msg_len); |
1826 | udpw->session = session; | 1827 | udpw->session = session; |
1827 | udpw->msg_buf = (char *) &udpw[1]; | 1828 | udpw->msg_buf = (char *) &udpw[1]; |
@@ -1996,8 +1997,8 @@ udp_plugin_send (void *cls, | |||
1996 | return GNUNET_SYSERR; | 1997 | return GNUNET_SYSERR; |
1997 | } | 1998 | } |
1998 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1999 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1999 | "UDP transmits %u-byte message to `%s' using address `%s'\n", | 2000 | "UDP transmits %lu-byte message to `%s' using address `%s'\n", |
2000 | udpmlen, | 2001 | (unsigned long) udpmlen, |
2001 | GNUNET_i2s (&s->target), | 2002 | GNUNET_i2s (&s->target), |
2002 | udp_address_to_string (plugin, | 2003 | udp_address_to_string (plugin, |
2003 | s->address->address, | 2004 | s->address->address, |
@@ -3113,18 +3114,18 @@ remove_timeout_messages_and_select (struct Plugin *plugin, | |||
3113 | { | 3114 | { |
3114 | /* this message is not delayed */ | 3115 | /* this message is not delayed */ |
3115 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 3116 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
3116 | "Message for peer `%s' (%u bytes) is not delayed \n", | 3117 | "Message for peer `%s' (%lu bytes) is not delayed \n", |
3117 | GNUNET_i2s (&udpw->session->target), | 3118 | GNUNET_i2s (&udpw->session->target), |
3118 | udpw->payload_size); | 3119 | (unsigned long) udpw->payload_size); |
3119 | break; /* Found message to send, break */ | 3120 | break; /* Found message to send, break */ |
3120 | } | 3121 | } |
3121 | else | 3122 | else |
3122 | { | 3123 | { |
3123 | /* Message is delayed, try next */ | 3124 | /* Message is delayed, try next */ |
3124 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 3125 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
3125 | "Message for peer `%s' (%u bytes) is delayed for %s\n", | 3126 | "Message for peer `%s' (%lu bytes) is delayed for %s\n", |
3126 | GNUNET_i2s (&udpw->session->target), | 3127 | GNUNET_i2s (&udpw->session->target), |
3127 | udpw->payload_size, | 3128 | (unsigned long) udpw->payload_size, |
3128 | GNUNET_STRINGS_relative_time_to_string (remaining, GNUNET_YES)); | 3129 | GNUNET_STRINGS_relative_time_to_string (remaining, GNUNET_YES)); |
3129 | udpw = udpw->next; | 3130 | udpw = udpw->next; |
3130 | } | 3131 | } |