[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r26738 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r26738 - gnunet/src/transport |
Date: |
Wed, 3 Apr 2013 16:18:40 +0200 |
Author: wachs
Date: 2013-04-03 16:18:39 +0200 (Wed, 03 Apr 2013)
New Revision: 26738
Modified:
gnunet/src/transport/gnunet-service-transport_manipulation.c
Log:
docu
Modified: gnunet/src/transport/gnunet-service-transport_manipulation.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_manipulation.c
2013-04-03 14:11:36 UTC (rev 26737)
+++ gnunet/src/transport/gnunet-service-transport_manipulation.c
2013-04-03 14:18:39 UTC (rev 26738)
@@ -87,14 +87,49 @@
*/
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 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)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r26738 - gnunet/src/transport,
gnunet <=