gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r37834 - gnunet/src/util
Date: Mon, 29 Aug 2016 13:53:44 +0200

Author: grothoff
Date: 2016-08-29 13:53:43 +0200 (Mon, 29 Aug 2016)
New Revision: 37834

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:48:21 UTC (rev 37833)
+++ gnunet/src/util/service_new.c       2016-08-29 11:53:43 UTC (rev 37834)
@@ -31,6 +31,40 @@
 
 
 /**
+ * Information the service tracks per listen operation.
+ */
+struct ServiceListenContext
+{
+
+  /**
+   * Kept in a DLL.
+   */
+  struct ServiceListenContext *next;
+
+  /**
+   * Kept in a DLL.
+   */
+  struct ServiceListenContext *prev;
+
+  /**
+   * Service this listen context belongs to.
+   */
+  struct GNUNET_SERVICE_Handle *sh;
+
+  /**
+   * Socket we are listening on.
+   */
+  struct GNUNET_NETWORK_Handle *listen_socket;
+
+  /**
+   * Task scheduled to do the listening.
+   */
+  struct GNUNET_SCHEDULER_Task *listen_task;
+
+};
+
+
+/**
  * Handle to a service.
  */
 struct GNUNET_SERVICE_Handle
@@ -66,6 +100,16 @@
   void *cb_cls;
 
   /**
+   * DLL of listen sockets used to accept new connections.
+   */
+  struct ServiceListenContext *slc_head;
+
+  /**
+   * DLL of listen sockets used to accept new connections.
+   */
+  struct ServiceListenContext *slc_tail;
+
+  /**
    * Message handlers to use for all clients.
    */
   struct GNUNET_MQ_MessageHandler *handlers;




reply via email to

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