diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-29 12:18:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-29 12:18:53 +0000 |
commit | 6400e1302fc13d3c1704b2ee07e6de1329788b10 (patch) | |
tree | 3463f263e33f73cb39a59458d589bb295d359601 /src/include/gnunet_service_lib.h | |
parent | 38989ef95f911d4090482bf3725e867c896d221a (diff) | |
download | gnunet-6400e1302fc13d3c1704b2ee07e6de1329788b10.tar.gz gnunet-6400e1302fc13d3c1704b2ee07e6de1329788b10.zip |
-starting with service_new main logic
Diffstat (limited to 'src/include/gnunet_service_lib.h')
-rw-r--r-- | src/include/gnunet_service_lib.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/gnunet_service_lib.h b/src/include/gnunet_service_lib.h index 0d9589205..797857ed8 100644 --- a/src/include/gnunet_service_lib.h +++ b/src/include/gnunet_service_lib.h | |||
@@ -95,13 +95,15 @@ typedef void | |||
95 | enum GNUNET_SERVICE_Options | 95 | enum GNUNET_SERVICE_Options |
96 | { | 96 | { |
97 | /** | 97 | /** |
98 | * Use defaults. | 98 | * Use defaults. Terminates all client connections and the listen |
99 | * sockets immediately upon receiving the shutdown signal. | ||
99 | */ | 100 | */ |
100 | GNUNET_SERVICE_OPTION_NONE = 0, | 101 | GNUNET_SERVICE_OPTION_NONE = 0, |
101 | 102 | ||
102 | /** | 103 | /** |
103 | * Do not trigger server shutdown on signals, allow for the user | 104 | * Do not trigger server shutdown on signal at all; instead, allow |
104 | * to terminate the server explicitly when needed. | 105 | * for the user to terminate the server explicitly when needed |
106 | * by calling #GNUNET_SERVICE_shutdown(). | ||
105 | */ | 107 | */ |
106 | GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN = 1, | 108 | GNUNET_SERVICE_OPTION_MANUAL_SHUTDOWN = 1, |
107 | 109 | ||
@@ -412,14 +414,12 @@ GNUNET_SERVICE_client_drop (struct GNUNET_SERVICE_Client *c); | |||
412 | 414 | ||
413 | 415 | ||
414 | /** | 416 | /** |
415 | * Stop the listen socket and get ready to shutdown the server once | 417 | * Explicitly stops the service. |
416 | * only clients marked using #GNUNET_SERVER_client_mark_monitor are | ||
417 | * left. | ||
418 | * | 418 | * |
419 | * @param sh server to stop listening on | 419 | * @param sh server to shutdown |
420 | */ | 420 | */ |
421 | void | 421 | void |
422 | GNUNET_SERVICE_stop_listening (struct GNUNET_SERVICE_Handle *sh); | 422 | GNUNET_SERVICE_shutdown (struct GNUNET_SERVICE_Handle *sh); |
423 | 423 | ||
424 | 424 | ||
425 | /** | 425 | /** |