diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-09 08:32:49 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-09 08:32:49 +0000 |
commit | dcba7f93f6cbccbd5f103675109fb1ebb88d6b41 (patch) | |
tree | 73063d90c330a71b1b36246b289001124348bf16 /src/mesh/gnunet-service-mesh_connection.h | |
parent | 637359c6d1883cdd3d3132027b4a3418995859c2 (diff) | |
download | gnunet-dcba7f93f6cbccbd5f103675109fb1ebb88d6b41.tar.gz gnunet-dcba7f93f6cbccbd5f103675109fb1ebb88d6b41.zip |
- sync
Diffstat (limited to 'src/mesh/gnunet-service-mesh_connection.h')
-rw-r--r-- | src/mesh/gnunet-service-mesh_connection.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.h b/src/mesh/gnunet-service-mesh_connection.h index c2d396969..2552623c3 100644 --- a/src/mesh/gnunet-service-mesh_connection.h +++ b/src/mesh/gnunet-service-mesh_connection.h | |||
@@ -208,6 +208,17 @@ GMC_handle_keepalive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
208 | const struct GNUNET_MessageHeader *message); | 208 | const struct GNUNET_MessageHeader *message); |
209 | 209 | ||
210 | /** | 210 | /** |
211 | * Send an ACK on the appropriate connection/channel, depending on | ||
212 | * the direction and the position of the peer. | ||
213 | * | ||
214 | * @param c Which connection to send the hop-by-hop ACK. | ||
215 | * @param ch Channel, if any. | ||
216 | * @param fwd Is this a fwd ACK? (will go dest->root) | ||
217 | */ | ||
218 | void | ||
219 | GMC_send_ack (struct MeshConnection *c, struct MeshChannel *ch, int fwd); | ||
220 | |||
221 | /** | ||
211 | * Initialize the connections subsystem | 222 | * Initialize the connections subsystem |
212 | * | 223 | * |
213 | * @param c Configuration handle. | 224 | * @param c Configuration handle. |
@@ -264,6 +275,16 @@ enum MeshConnectionState | |||
264 | GMC_get_state (const struct MeshConnection *c); | 275 | GMC_get_state (const struct MeshConnection *c); |
265 | 276 | ||
266 | /** | 277 | /** |
278 | * Get the connection tunnel. | ||
279 | * | ||
280 | * @param c Connection to get the tunnel from. | ||
281 | * | ||
282 | * @return tunnel of the connection. | ||
283 | */ | ||
284 | struct MeshTunnel3 * | ||
285 | GMC_get_tunnel (const struct MeshConnection *c); | ||
286 | |||
287 | /** | ||
267 | * Get free buffer space in a connection. | 288 | * Get free buffer space in a connection. |
268 | * | 289 | * |
269 | * @param c Connection. | 290 | * @param c Connection. |