docu
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Apr 2013 14:18:39 +0000 (14:18 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 3 Apr 2013 14:18:39 +0000 (14:18 +0000)
src/transport/gnunet-service-transport_manipulation.c

index 5c26a80381a3df73f930726fb879cc415f4045a4..4543add005be70a5420312b0da4942aac3b693ae 100644 (file)
@@ -87,14 +87,49 @@ struct TM_Peer;
  */
 struct DelayQueueEntry
 {
+       /**
+        * Next in DLL
+        */
        struct DelayQueueEntry *prev;
+
+       /**
+        * Previous in DLL
+        */
        struct DelayQueueEntry *next;
+
+       /**
+        * Peer this entry is belonging to
+        */
        struct TM_Peer *tmp;
+
+       /**
+        * Absolute time when to send
+        */
        struct GNUNET_TIME_Absolute sent_at;
+
+       /**
+        * The message
+        */
        void *msg;
+
+       /**
+        * The message size
+        */
        size_t msg_size;
+
+       /**
+        * Message timeout
+        */
        struct GNUNET_TIME_Relative timeout;
+
+       /**
+        * Transports send continuation
+        */
        GST_NeighbourSendContinuation cont;
+
+       /**
+        * Transports send continuation cls
+        */
        void *cont_cls;
 };
 
@@ -103,15 +138,33 @@ struct DelayQueueEntry
  */
 struct TM_Peer
 {
+       /**
+        * Peer ID
+        */
        struct GNUNET_PeerIdentity peer;
+
+       /**
+        * Peer specific manipulation metrics
+        */
        uint32_t metrics [TM_BOTH][GNUNET_ATS_QualityPropertiesCount];
+
+       /**
+        * Task to schedule delayed sendding
+        */
        GNUNET_SCHEDULER_TaskIdentifier send_delay_task;
+
+       /**
+        * Send queue DLL head
+        */
        struct DelayQueueEntry *send_head;
+
+       /**
+        * Send queue DLL tail
+        */
        struct DelayQueueEntry *send_tail;
 };
 
 
-
 static void
 set_delay(struct TM_Peer *tmp, struct GNUNET_PeerIdentity *peer, int direction, uint32_t value)
 {