diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-03-12 13:29:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-03-12 13:29:05 +0000 |
commit | a6f43190ab793b3487da2133735e166e337000c4 (patch) | |
tree | fc2dacc6a36f3ec04cf86a14cdea9c5bdf45274f /src/include/gnunet_client_lib.h | |
parent | 61cfd3340e67672f351ab92dab7da72dca058c79 (diff) | |
download | gnunet-a6f43190ab793b3487da2133735e166e337000c4.tar.gz gnunet-a6f43190ab793b3487da2133735e166e337000c4.zip |
cancel pending write if we are just dead anyway
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r-- | src/include/gnunet_client_lib.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h index 0b06d45d0..21487eb04 100644 --- a/src/include/gnunet_client_lib.h +++ b/src/include/gnunet_client_lib.h | |||
@@ -75,19 +75,24 @@ GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, | |||
75 | int do_ignore); | 75 | int do_ignore); |
76 | 76 | ||
77 | 77 | ||
78 | |||
78 | /** | 79 | /** |
79 | * Destroy connection with the service. This will automatically | 80 | * Destroy connection with the service. This will automatically |
80 | * cancel any pending "receive" request (however, the handler will | 81 | * cancel any pending "receive" request (however, the handler will |
81 | * *NOT* be called, not even with a NULL message). Any pending | 82 | * *NOT* be called, not even with a NULL message). Any pending |
82 | * transmission request will also be cancelled UNLESS the callback for | 83 | * transmission request will also be cancelled UNLESS the callback for |
83 | * the transmission request has already been called, in which case the | 84 | * the transmission request has already been called, in which case the |
84 | * transmission is guaranteed to complete before the socket is fully | 85 | * transmission 'finish_pending_write' argument determines whether or |
85 | * destroyed (unless, of course, there is an error with the server | 86 | * not the write is guaranteed to complete before the socket is fully |
86 | * in which case the message may still be lost). | 87 | * destroyed (unless, of course, there is an error with the server in |
88 | * which case the message may still be lost). | ||
87 | * | 89 | * |
88 | * @param sock handle to the service connection | 90 | * @param sock handle to the service connection |
91 | * @param finish_pending_write should a transmission already passed to the | ||
92 | * handle be completed? | ||
89 | */ | 93 | */ |
90 | void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock); | 94 | void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock, |
95 | int finish_pending_write); | ||
91 | 96 | ||
92 | /** | 97 | /** |
93 | * Type of a function to call when we receive a message | 98 | * Type of a function to call when we receive a message |