gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r17468 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r17468 - gnunet/src/ats
Date: Thu, 13 Oct 2011 22:55:36 +0200

Author: grothoff
Date: 2011-10-13 22:55:36 +0200 (Thu, 13 Oct 2011)
New Revision: 17468

Modified:
   gnunet/src/ats/gnunet-service-ats.c
Log:
removing client code

Modified: gnunet/src/ats/gnunet-service-ats.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats.c 2011-10-13 20:54:17 UTC (rev 17467)
+++ gnunet/src/ats/gnunet-service-ats.c 2011-10-13 20:55:36 UTC (rev 17468)
@@ -62,6 +62,21 @@
 
 
 /**
+ * A client disconnected from us.  Tear down the local client
+ * record.
+ *
+ * @param cls unused
+ * @param client handle of the client
+ */
+static void
+client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
+{
+  GAS_remove_scheduling_client (client);
+  GAS_remove_performance_client (client);
+}
+
+
+/**
  * Task run during shutdown.
  *
  * @param cls unused
@@ -101,6 +116,9 @@
     {NULL, NULL, 0, 0}
   };
   GAS_addresses_init ();
+  GNUNET_SERVER_disconnect_notify (server, 
+                                  &client_disconnect_handler,
+                                   NULL);
   GNUNET_SERVER_add_handlers (server, handlers);
   GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task,
                                 NULL);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]