X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fgnunet-service-mesh_tunnel.h;h=369713e660a86d5856c94d6403ede42e4cf60f97;hb=1ef7f26b7579ae2a6256751a3f5ebfbf60afbb2f;hp=c5c13b28b78c320a0f0307ff15e3ba65c093fae8;hpb=4248b31f8dd35814514b279701c2483d05c132b8;p=oweals%2Fgnunet.git diff --git a/src/mesh/gnunet-service-mesh_tunnel.h b/src/mesh/gnunet-service-mesh_tunnel.h index c5c13b28b..369713e66 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.h +++ b/src/mesh/gnunet-service-mesh_tunnel.h @@ -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.