diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-15 16:53:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-15 16:53:43 +0000 |
commit | e8e7d2e1cc53e2bfd383a20ebf5f25fbc9ecf98e (patch) | |
tree | 0b1692ad47f54fc56494c5b094da8e8c2c08b44d /src/include | |
parent | c67e3cbb6b4e76c01cf6c6f14acafae0e32e34ed (diff) | |
download | gnunet-e8e7d2e1cc53e2bfd383a20ebf5f25fbc9ecf98e.tar.gz gnunet-e8e7d2e1cc53e2bfd383a20ebf5f25fbc9ecf98e.zip |
ignore shutdown support for client/connection and shutdown fix in connection
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_client_lib.h | 12 | ||||
-rw-r--r-- | src/include/gnunet_connection_lib.h | 11 |
2 files changed, 23 insertions, 0 deletions
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 | |||
63 | GNUNET_CONFIGURATION_Handle | 63 | GNUNET_CONFIGURATION_Handle |
64 | *cfg); | 64 | *cfg); |
65 | 65 | ||
66 | |||
67 | /** | ||
68 | * Configure this connection to ignore shutdown signals. | ||
69 | * | ||
70 | * @param h client handle | ||
71 | * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default | ||
72 | */ | ||
73 | void | ||
74 | GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, | ||
75 | int do_ignore); | ||
76 | |||
77 | |||
66 | /** | 78 | /** |
67 | * Destroy connection with the service. This will automatically | 79 | * Destroy connection with the service. This will automatically |
68 | * cancel any pending "receive" request (however, the handler will | 80 | * 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 | |||
315 | *h); | 315 | *h); |
316 | 316 | ||
317 | 317 | ||
318 | /** | ||
319 | * Configure this connection to ignore shutdown signals. | ||
320 | * | ||
321 | * @param sock socket handle | ||
322 | * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default | ||
323 | */ | ||
324 | void | ||
325 | GNUNET_CONNECTION_ignore_shutdown (struct GNUNET_CONNECTION_Handle *sock, | ||
326 | int do_ignore); | ||
327 | |||
328 | |||
318 | #if 0 /* keep Emacsens' auto-indent happy */ | 329 | #if 0 /* keep Emacsens' auto-indent happy */ |
319 | { | 330 | { |
320 | #endif | 331 | #endif |