diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-15 17:57:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-15 17:57:03 +0000 |
commit | 0c725262770a39908e6171b9a4d0c19917e1d7cf (patch) | |
tree | 3e7e659c020ce24f59a2f00e1de4d39093bdc329 /src/include/gnunet_server_lib.h | |
parent | be9e0f23d0e24c093597e342024f29b0111f7f9b (diff) | |
download | gnunet-0c725262770a39908e6171b9a4d0c19917e1d7cf.tar.gz gnunet-0c725262770a39908e6171b9a4d0c19917e1d7cf.zip |
add shutdown-ignore option to server
Diffstat (limited to 'src/include/gnunet_server_lib.h')
-rw-r--r-- | src/include/gnunet_server_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index 570985d16..455cb4684 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h | |||
@@ -427,6 +427,22 @@ void GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client); | |||
427 | 427 | ||
428 | 428 | ||
429 | /** | 429 | /** |
430 | * Configure this server's connections to continue handling client | ||
431 | * requests as usual even after we get a shutdown signal. The change | ||
432 | * only applies to clients that connect to the server from the outside | ||
433 | * using TCP after this call. Clients managed previously or those | ||
434 | * added using GNUNET_SERVER_connect_socket and | ||
435 | * GNUNET_SERVER_connect_callback are not affected by this option. | ||
436 | * | ||
437 | * @param h server handle | ||
438 | * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default | ||
439 | */ | ||
440 | void | ||
441 | GNUNET_SERVER_ignore_shutdown (struct GNUNET_SERVER_Handle *h, | ||
442 | int do_ignore); | ||
443 | |||
444 | |||
445 | /** | ||
430 | * The tansmit context is the key datastructure for a conveniance API | 446 | * The tansmit context is the key datastructure for a conveniance API |
431 | * used for transmission of complex results to the client followed | 447 | * used for transmission of complex results to the client followed |
432 | * ONLY by signaling receive_done with success or error | 448 | * ONLY by signaling receive_done with success or error |