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/gnunet_client_lib.h | |
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/gnunet_client_lib.h')
-rw-r--r-- | src/include/gnunet_client_lib.h | 12 |
1 files changed, 12 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 |