aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_clients.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-09 14:52:22 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-09 14:52:22 +0000
commit219145ed3c786dd64faae300e873e291bd873b94 (patch)
tree395d6134a165c21f63a4e82645a2b6b833fd8056 /src/transport/gnunet-service-transport_clients.c
parent1240b4fd34967bf9b10d06d38247d7a7033e6b3e (diff)
downloadgnunet-219145ed3c786dd64faae300e873e291bd873b94.tar.gz
gnunet-219145ed3c786dd64faae300e873e291bd873b94.zip
-doxygen, indentation fixes
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r--src/transport/gnunet-service-transport_clients.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c
index c3ef42652..0aeb661d4 100644
--- a/src/transport/gnunet-service-transport_clients.c
+++ b/src/transport/gnunet-service-transport_clients.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010,2011 Christian Grothoff (and other contributing authors) 3 (C) 2010-2013 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -381,9 +381,10 @@ unicast (struct TransportClient *tc,
381 if ((tc->message_count >= MAX_PENDING) && (GNUNET_YES == may_drop)) 381 if ((tc->message_count >= MAX_PENDING) && (GNUNET_YES == may_drop))
382 { 382 {
383 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 383 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
384 _ 384 _("Dropping message of type %u and size %u, have %u/%u messages pending\n"),
385 ("Dropping message of type %u and size %u, have %u/%u messages pending\n"), 385 ntohs (msg->type),
386 ntohs (msg->type), ntohs (msg->size), tc->message_count, 386 ntohs (msg->size),
387 tc->message_count,
387 MAX_PENDING); 388 MAX_PENDING);
388 GNUNET_STATISTICS_update (GST_stats, 389 GNUNET_STATISTICS_update (GST_stats,
389 gettext_noop 390 gettext_noop
@@ -459,7 +460,7 @@ client_disconnect_notification (void *cls, struct GNUNET_SERVER_Client *client)
459 * Function called for each of our connected neighbours. Notify the 460 * Function called for each of our connected neighbours. Notify the
460 * client about the existing neighbour. 461 * client about the existing neighbour.
461 * 462 *
462 * @param cls the 'struct TransportClient' to notify 463 * @param cls the `struct TransportClient *` to notify
463 * @param peer identity of the neighbour 464 * @param peer identity of the neighbour
464 * @param address the address 465 * @param address the address
465 * @param bandwidth_in inbound bandwidth in NBO 466 * @param bandwidth_in inbound bandwidth in NBO
@@ -702,9 +703,9 @@ try_connect_if_allowed (void *cls,
702{ 703{
703 if (GNUNET_OK != result) 704 if (GNUNET_OK != result)
704 { 705 {
705 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 706 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
706 "Blacklist refuses connection attempt to peer `%s'\n", 707 "Blacklist refuses connection attempt to peer `%s'\n",
707 GNUNET_i2s (peer)); 708 GNUNET_i2s (peer));
708 return; /* not allowed */ 709 return; /* not allowed */
709 } 710 }
710 GST_neighbours_try_connect (peer); 711 GST_neighbours_try_connect (peer);
@@ -733,7 +734,7 @@ clients_handle_request_connect (void *cls, struct GNUNET_SERVER_Client *client,
733 if (0 == memcmp (&trcm->peer, &GST_my_identity, 734 if (0 == memcmp (&trcm->peer, &GST_my_identity,
734 sizeof (struct GNUNET_PeerIdentity))) 735 sizeof (struct GNUNET_PeerIdentity)))
735 { 736 {
736 GNUNET_break_op (0); 737 GNUNET_break_op (0);
737 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 738 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
738 "Received a request connect message myself `%s'\n", 739 "Received a request connect message myself `%s'\n",
739 GNUNET_i2s (&trcm->peer)); 740 GNUNET_i2s (&trcm->peer));
@@ -816,8 +817,7 @@ clients_handle_address_to_string (void *cls,
816 } 817 }
817 address = (const char *) &alum[1]; 818 address = (const char *) &alum[1];
818 plugin_name = (const char *) &address[address_len]; 819 plugin_name = (const char *) &address[address_len];
819 if (plugin_name[size - sizeof (struct AddressLookupMessage) - address_len - 1] 820 if ('\0' != plugin_name[size - sizeof (struct AddressLookupMessage) - address_len - 1])
820 != '\0')
821 { 821 {
822 GNUNET_break (0); 822 GNUNET_break (0);
823 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 823 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);