gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r23259 - gnunet/src/mesh
Date: Thu, 16 Aug 2012 16:14:10 +0200

Author: bartpolot
Date: 2012-08-16 16:14:10 +0200 (Thu, 16 Aug 2012)
New Revision: 23259

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
- doxygen, refactor

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2012-08-16 14:08:58 UTC (rev 
23258)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2012-08-16 14:14:10 UTC (rev 
23259)
@@ -3663,8 +3663,16 @@
   return ack;
 }
 
+
+/**
+ * Build a local ACK message and send it to a local client.
+ * 
+ * @param t Tunnel on which to send the ACK.
+ * @param c Client to whom send the ACK.
+ * @param ack Value of the ACK.
+ */
 static void
-send_local_ack (struct MeshClient *c, struct MeshTunnel *t, uint32_t ack)
+send_local_ack (struct MeshTunnel *t, struct MeshClient *c, uint32_t ack)
 {
   struct GNUNET_MESH_LocalAck msg;
 
@@ -3679,7 +3687,11 @@
 }
 
 /**
- * Build an ACK message and send it to the given peer.
+ * Build an ACK message and queue it to send to the given peer.
+ * 
+ * @param t Tunnel on which to send the ACK.
+ * @param peer Peer to whom send the ACK.
+ * @param ack Value of the ACK.
  */
 static void
 send_ack (struct MeshTunnel *t, struct GNUNET_PeerIdentity *peer,  uint32_t 
ack)
@@ -3817,7 +3829,7 @@
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "  sending ack to client %u: %u\n",
                   t->clients[i]->id, ack);
-      send_local_ack(t->clients[i],  t, ack);
+      send_local_ack (t, t->clients[i], ack);
       clinfo->bck_ack = ack;
     }
   }




reply via email to

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