ignore shutdown support for client/connection and shutdown fix in connection
authorChristian Grothoff <christian@grothoff.org>
Sun, 15 Nov 2009 16:53:43 +0000 (16:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 15 Nov 2009 16:53:43 +0000 (16:53 +0000)
src/include/gnunet_client_lib.h
src/include/gnunet_connection_lib.h

index b2311e870c48fccd338787c3e2f7a6c427b40256..0b06d45d0056c88a462fbd624867f366b5745507 100644 (file)
@@ -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
index 364413adc67176db33afdf708fe47227c211a2a5..78bdaf8e4cced2839c42e8596c5445cd665d0f5c 100644 (file)
@@ -315,6 +315,17 @@ GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
                                                         *h);\r
 \r
 \r
+/**\r
+ * Configure this connection to ignore shutdown signals.\r
+ *\r
+ * @param sock socket handle\r
+ * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default\r
+ */\r
+void\r
+GNUNET_CONNECTION_ignore_shutdown (struct GNUNET_CONNECTION_Handle *sock,\r
+                                  int do_ignore);\r
+\r
+\r
 #if 0                           /* keep Emacsens' auto-indent happy */\r
 {\r
 #endif\r