gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37833 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r37833 - gnunet/src/util
Date: Mon, 29 Aug 2016 13:48:22 +0200

Author: grothoff
Date: 2016-08-29 13:48:21 +0200 (Mon, 29 Aug 2016)
New Revision: 37833

Modified:
   gnunet/src/util/service_new.c
Log:
-starting with service_new implementation data structures

Modified: gnunet/src/util/service_new.c
===================================================================
--- gnunet/src/util/service_new.c       2016-08-29 11:47:03 UTC (rev 37832)
+++ gnunet/src/util/service_new.c       2016-08-29 11:48:21 UTC (rev 37833)
@@ -48,9 +48,29 @@
   /**
    * Main service-specific task to run.
    */
-  GNUNET_SERVICE_Main task;
+  GNUNET_SERVICE_InitCallback service_init_cb;
 
   /**
+   * Function to call when clients connect.
+   */
+  GNUNET_SERVICE_ConnectHandler connect_cb;
+
+  /**
+   * Function to call when clients disconnect / are disconnected.
+   */
+  GNUNET_SERVICE_DisconnectHandler disconnect_cb;
+
+  /**
+   * Closure for @e service_init_cb, @e connect_cb, @e disconnect_cb.
+   */
+  void *cb_cls;
+
+  /**
+   * Message handlers to use for all clients.
+   */
+  struct GNUNET_MQ_MessageHandler *handlers;
+
+  /**
    * Closure for @e task.
    */
   void *task_cls;




reply via email to

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