aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-11-23 19:05:11 +0000
committerChristian Grothoff <christian@grothoff.org>2014-11-23 19:05:11 +0000
commitcb6408fefbf6b0a834ca5ae3be7458d9bf82e8cc (patch)
tree55ec9c77d4c3ce516d0de48ed9cddeee9dc6f4b9 /src/util
parent426b733481c21704bc2fb080f7c8e1d4150d11f4 (diff)
downloadgnunet-cb6408fefbf6b0a834ca5ae3be7458d9bf82e8cc.tar.gz
gnunet-cb6408fefbf6b0a834ca5ae3be7458d9bf82e8cc.zip
-indentation, doxygen
Diffstat (limited to 'src/util')
-rw-r--r--src/util/server.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 7c3829244..8883d212e 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -627,7 +627,7 @@ GNUNET_SERVER_create (GNUNET_CONNECTION_AccessCheck access, void *access_cls,
627/** 627/**
628 * Set the 'monitor' flag on this client. Clients which have been 628 * Set the 'monitor' flag on this client. Clients which have been
629 * marked as 'monitors' won't prevent the server from shutting down 629 * marked as 'monitors' won't prevent the server from shutting down
630 * once 'GNUNET_SERVER_stop_listening' has been invoked. The idea is 630 * once '#GNUNET_SERVER_stop_listening()' has been invoked. The idea is
631 * that for "normal" clients we likely want to allow them to process 631 * that for "normal" clients we likely want to allow them to process
632 * their requests; however, monitor-clients are likely to 'never' 632 * their requests; however, monitor-clients are likely to 'never'
633 * disconnect during shutdown and thus will not be considered when 633 * disconnect during shutdown and thus will not be considered when
@@ -746,7 +746,8 @@ GNUNET_SERVER_stop_listening (struct GNUNET_SERVER_Handle *server)
746{ 746{
747 unsigned int i; 747 unsigned int i;
748 748
749 LOG (GNUNET_ERROR_TYPE_DEBUG, "Server in soft shutdown\n"); 749 LOG (GNUNET_ERROR_TYPE_DEBUG,
750 "Server in soft shutdown\n");
750 if (GNUNET_SCHEDULER_NO_TASK != server->listen_task) 751 if (GNUNET_SCHEDULER_NO_TASK != server->listen_task)
751 { 752 {
752 GNUNET_SCHEDULER_cancel (server->listen_task); 753 GNUNET_SCHEDULER_cancel (server->listen_task);
@@ -779,7 +780,8 @@ GNUNET_SERVER_destroy (struct GNUNET_SERVER_Handle *server)
779 struct NotifyList *npos; 780 struct NotifyList *npos;
780 unsigned int i; 781 unsigned int i;
781 782
782 LOG (GNUNET_ERROR_TYPE_DEBUG, "Server shutting down.\n"); 783 LOG (GNUNET_ERROR_TYPE_DEBUG,
784 "Server shutting down.\n");
783 if (GNUNET_SCHEDULER_NO_TASK != server->listen_task) 785 if (GNUNET_SCHEDULER_NO_TASK != server->listen_task)
784 { 786 {
785 GNUNET_SCHEDULER_cancel (server->listen_task); 787 GNUNET_SCHEDULER_cancel (server->listen_task);
@@ -1006,12 +1008,16 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
1006 * @param buf buffer with data received from network 1008 * @param buf buffer with data received from network
1007 * @param available number of bytes available in buf 1009 * @param available number of bytes available in buf
1008 * @param addr address of the sender 1010 * @param addr address of the sender
1009 * @param addrlen length of addr 1011 * @param addrlen length of @a addr
1010 * @param errCode code indicating errors receiving, 0 for success 1012 * @param errCode code indicating errors receiving, 0 for success
1011 */ 1013 */
1012static void 1014static void
1013process_incoming (void *cls, const void *buf, size_t available, 1015process_incoming (void *cls,
1014 const struct sockaddr *addr, socklen_t addrlen, int errCode); 1016 const void *buf,
1017 size_t available,
1018 const struct sockaddr *addr,
1019 socklen_t addrlen,
1020 int errCode);
1015 1021
1016 1022
1017/** 1023/**