gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24610 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r24610 - gnunet/src/mesh
Date: Tue, 30 Oct 2012 15:29:24 +0100

Author: bartpolot
Date: 2012-10-30 15:29:24 +0100 (Tue, 30 Oct 2012)
New Revision: 24610

Modified:
   gnunet/src/mesh/gnunet-service-mesh-new.c
Log:
- refactoring, clinfo -> fcinfo

Modified: gnunet/src/mesh/gnunet-service-mesh-new.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh-new.c   2012-10-30 14:25:49 UTC (rev 
24609)
+++ gnunet/src/mesh/gnunet-service-mesh-new.c   2012-10-30 14:29:24 UTC (rev 
24610)
@@ -3369,13 +3369,16 @@
 static void
 tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c)
 {
-  struct MeshTunnelClientInfo clinfo;
+  struct MeshTunnelFlowControlInfo fcinfo;
 
   GNUNET_array_append (t->clients, t->nclients, c);
-  clinfo.fwd_ack = t->fwd_pid + 1;
-  clinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1;
-  clinfo.fwd_pid = t->fwd_pid;
-  clinfo.bck_pid = (uint32_t) -1; // Expected next: 0
+  fcinfo.client = c;
+  fcinfo.fwd_ack = t->fwd_pid + 1;
+  fcinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1;
+  fcinfo.fwd_pid = t->fwd_pid;
+  fcinfo.bck_pid = (uint32_t) -1; // Expected next: 0
+  // FIXME fc buffering is done by context_notify. Confirm this is OK.
+
   t->nclients--;
   GNUNET_array_append (t->clients_fc, t->nclients, clinfo);
 }




reply via email to

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