- doxygen
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_tunnel.h
index c5c13b28b78c320a0f0307ff15e3ba65c093fae8..369713e660a86d5856c94d6403ede42e4cf60f97 100644 (file)
@@ -204,7 +204,7 @@ GMT_get_channel (struct MeshTunnel3 *t, MESH_ChannelNumber chid);
  * towards a channel of a local tunnel.
  *
  * @param t Tunnel this message came on.
- * @param msgh Message header.
+ * @param msg Message header.
  * @param fwd Is this message fwd?
  */
 void
@@ -280,6 +280,8 @@ GMT_get_state (struct MeshTunnel3 *t);
 
 /**
  * Get the total buffer space for a tunnel.
+ * 
+ * FIXME get a ch parameter in case of loopback tunnels
  *
  * @param t Tunnel.
  * @param fwd Is this for FWD traffic?
@@ -309,6 +311,26 @@ GMT_get_destination (struct MeshTunnel3 *t);
 MESH_ChannelNumber
 GMT_get_next_chid (struct MeshTunnel3 *t);
 
+/**
+ * Send ACK on one or more channels due to buffer in connections..
+ *
+ * @param t Channel which has some free buffer space.
+ * @param fwd Is this for FWD traffic? (ACK goes to root)
+ */
+void
+GMT_unchoke_channels (struct MeshTunnel3 *t, int fwd);
+
+/**
+ * Send ACK on one or more connections due to buffer space to the client.
+ *
+ * Iterates all connections of the tunnel and sends ACKs appropriately.
+ *
+ * @param ch Channel which has some free buffer space.
+ * @param fwd Is this in for FWD traffic? (ACK goes dest->root)
+ */
+void
+GMT_send_acks (struct MeshTunnel3 *t, int fwd);
+
 /**
  * Sends an already built message on a tunnel, encrypting it and
  * choosing the best connection.