[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35319 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35319 - gnunet/src/util |
Date: |
Sat, 28 Feb 2015 19:44:19 +0100 |
Author: grothoff
Date: 2015-02-28 19:44:18 +0100 (Sat, 28 Feb 2015)
New Revision: 35319
Modified:
gnunet/src/util/server.c
Log:
notify monitor about existing connections
Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c 2015-02-28 16:27:05 UTC (rev 35318)
+++ gnunet/src/util/server.c 2015-02-28 18:44:18 UTC (rev 35319)
@@ -1416,6 +1416,7 @@
void *callback_cls)
{
struct NotifyList *n;
+ struct GNUNET_SERVER_Client *client;
n = GNUNET_new (struct NotifyList);
n->callback = callback;
@@ -1423,6 +1424,8 @@
GNUNET_CONTAINER_DLL_insert (server->connect_notify_list_head,
server->connect_notify_list_tail,
n);
+ for (client = server->clients_head; NULL != client; client = client->next)
+ callback (callback_cls, client);
}
@@ -1435,8 +1438,8 @@
*/
void
GNUNET_SERVER_disconnect_notify_cancel (struct GNUNET_SERVER_Handle *server,
- GNUNET_SERVER_DisconnectCallback
- callback, void *callback_cls)
+ GNUNET_SERVER_DisconnectCallback
callback,
+ void *callback_cls)
{
struct NotifyList *pos;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35319 - gnunet/src/util,
gnunet <=