diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-08-16 14:14:10 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-08-16 14:14:10 +0000 |
commit | 32a484c5250789b1ac0f1333498592c69e2d784f (patch) | |
tree | a39b1b3953a9d4872776f128a42c49a9842522ab | |
parent | ca2fc1244c24c90323464526d08e421eecacb612 (diff) | |
download | gnunet-32a484c5250789b1ac0f1333498592c69e2d784f.tar.gz gnunet-32a484c5250789b1ac0f1333498592c69e2d784f.zip |
- doxygen, refactor
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index d2a1c93fb..68162284a 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -3663,8 +3663,16 @@ tunnel_get_bck_ack (struct MeshTunnel *t) | |||
3663 | return ack; | 3663 | return ack; |
3664 | } | 3664 | } |
3665 | 3665 | ||
3666 | |||
3667 | /** | ||
3668 | * Build a local ACK message and send it to a local client. | ||
3669 | * | ||
3670 | * @param t Tunnel on which to send the ACK. | ||
3671 | * @param c Client to whom send the ACK. | ||
3672 | * @param ack Value of the ACK. | ||
3673 | */ | ||
3666 | static void | 3674 | static void |
3667 | send_local_ack (struct MeshClient *c, struct MeshTunnel *t, uint32_t ack) | 3675 | send_local_ack (struct MeshTunnel *t, struct MeshClient *c, uint32_t ack) |
3668 | { | 3676 | { |
3669 | struct GNUNET_MESH_LocalAck msg; | 3677 | struct GNUNET_MESH_LocalAck msg; |
3670 | 3678 | ||
@@ -3679,7 +3687,11 @@ send_local_ack (struct MeshClient *c, struct MeshTunnel *t, uint32_t ack) | |||
3679 | } | 3687 | } |
3680 | 3688 | ||
3681 | /** | 3689 | /** |
3682 | * Build an ACK message and send it to the given peer. | 3690 | * Build an ACK message and queue it to send to the given peer. |
3691 | * | ||
3692 | * @param t Tunnel on which to send the ACK. | ||
3693 | * @param peer Peer to whom send the ACK. | ||
3694 | * @param ack Value of the ACK. | ||
3683 | */ | 3695 | */ |
3684 | static void | 3696 | static void |
3685 | send_ack (struct MeshTunnel *t, struct GNUNET_PeerIdentity *peer, uint32_t ack) | 3697 | send_ack (struct MeshTunnel *t, struct GNUNET_PeerIdentity *peer, uint32_t ack) |
@@ -3817,7 +3829,7 @@ tunnel_send_clients_bck_ack (struct MeshTunnel *t) | |||
3817 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3829 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3818 | " sending ack to client %u: %u\n", | 3830 | " sending ack to client %u: %u\n", |
3819 | t->clients[i]->id, ack); | 3831 | t->clients[i]->id, ack); |
3820 | send_local_ack(t->clients[i], t, ack); | 3832 | send_local_ack (t, t->clients[i], ack); |
3821 | clinfo->bck_ack = ack; | 3833 | clinfo->bck_ack = ack; |
3822 | } | 3834 | } |
3823 | } | 3835 | } |