diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-22 15:14:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-22 15:14:39 +0000 |
commit | 87487477c67697355c79d2fe079d23a5b31c7ab6 (patch) | |
tree | d4a0754426c7887e9e4a5f8cd8c6a99eb66d0a05 /src/include | |
parent | 3f3d51ef20ae4ef5017ca92ed1f6e153322f3a95 (diff) | |
download | gnunet-87487477c67697355c79d2fe079d23a5b31c7ab6.tar.gz gnunet-87487477c67697355c79d2fe079d23a5b31c7ab6.zip |
updates to peerinfo to use new nc API
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_server_lib.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index 100dc9659..5609d7a9e 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h | |||
@@ -394,7 +394,8 @@ int GNUNET_SERVER_client_get_address (struct GNUNET_SERVER_Client *client, | |||
394 | * is disconnected on the network level. | 394 | * is disconnected on the network level. |
395 | * | 395 | * |
396 | * @param cls closure | 396 | * @param cls closure |
397 | * @param client identification of the client | 397 | * @param client identification of the client; NULL |
398 | * for the last call when the server is destroyed | ||
398 | */ | 399 | */ |
399 | typedef void (*GNUNET_SERVER_DisconnectCallback) (void *cls, | 400 | typedef void (*GNUNET_SERVER_DisconnectCallback) (void *cls, |
400 | struct GNUNET_SERVER_Client | 401 | struct GNUNET_SERVER_Client |
@@ -405,7 +406,11 @@ typedef void (*GNUNET_SERVER_DisconnectCallback) (void *cls, | |||
405 | * Ask the server to notify us whenever a client disconnects. | 406 | * Ask the server to notify us whenever a client disconnects. |
406 | * This function is called whenever the actual network connection | 407 | * This function is called whenever the actual network connection |
407 | * is closed; the reference count may be zero or larger than zero | 408 | * is closed; the reference count may be zero or larger than zero |
408 | * at this point. | 409 | * at this point. If the server is destroyed before this |
410 | * notification is explicitly cancelled, the 'callback' will | ||
411 | * once be called with a 'client' argument of NULL to indicate | ||
412 | * that the server itself is now gone (and that the callback | ||
413 | * won't be called anymore and also can no longer be cancelled). | ||
409 | * | 414 | * |
410 | * @param server the server manageing the clients | 415 | * @param server the server manageing the clients |
411 | * @param callback function to call on disconnect | 416 | * @param callback function to call on disconnect |