From e8e7d2e1cc53e2bfd383a20ebf5f25fbc9ecf98e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 15 Nov 2009 16:53:43 +0000 Subject: [PATCH] ignore shutdown support for client/connection and shutdown fix in connection --- src/include/gnunet_client_lib.h | 12 ++++++++++++ src/include/gnunet_connection_lib.h | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index b2311e870..0b06d45d0 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h @@ -63,6 +63,18 @@ struct GNUNET_CLIENT_Connection *GNUNET_CLIENT_connect (struct GNUNET_CONFIGURATION_Handle *cfg); + +/** + * Configure this connection to ignore shutdown signals. + * + * @param h client handle + * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default + */ +void +GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, + int do_ignore); + + /** * Destroy connection with the service. This will automatically * cancel any pending "receive" request (however, the handler will diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h index 364413adc..78bdaf8e4 100644 --- a/src/include/gnunet_connection_lib.h +++ b/src/include/gnunet_connection_lib.h @@ -315,6 +315,17 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct *h); +/** + * Configure this connection to ignore shutdown signals. + * + * @param sock socket handle + * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default + */ +void +GNUNET_CONNECTION_ignore_shutdown (struct GNUNET_CONNECTION_Handle *sock, + int do_ignore); + + #if 0 /* keep Emacsens' auto-indent happy */ { #endif -- 2.25.1