aboutsummaryrefslogtreecommitdiff
path: root/src/util/server.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-13 01:32:57 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-13 01:32:57 +0000
commit2d2a68721a463882c84ccca446899be94a31c56b (patch)
treefb2770572bb69f030c2be4fa6056f928cd39c962 /src/util/server.c
parent9babf324cd30822e8099dece229503ebc466e11b (diff)
downloadgnunet-2d2a68721a463882c84ccca446899be94a31c56b.tar.gz
gnunet-2d2a68721a463882c84ccca446899be94a31c56b.zip
- connect_notify is also called with NULL on server shutdown
Diffstat (limited to 'src/util/server.c')
-rw-r--r--src/util/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c
index 6dbb5dc23..46410e90e 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -1342,7 +1342,11 @@ GNUNET_SERVER_disconnect_notify (struct GNUNET_SERVER_Handle *server,
1342/** 1342/**
1343 * Ask the server to notify us whenever a client connects. 1343 * Ask the server to notify us whenever a client connects.
1344 * This function is called whenever the actual network connection 1344 * This function is called whenever the actual network connection
1345 * is opened. 1345 * is opened. If the server is destroyed before this
1346 * notification is explicitly cancelled, the 'callback' will
1347 * once be called with a 'client' argument of NULL to indicate
1348 * that the server itself is now gone (and that the callback
1349 * won't be called anymore and also can no longer be cancelled).
1346 * 1350 *
1347 * @param server the server manageing the clients 1351 * @param server the server manageing the clients
1348 * @param callback function to call on sconnect 1352 * @param callback function to call on sconnect