aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_tunnels.h
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-26 02:43:02 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-08-30 09:41:49 +0200
commit9285bb74e36fc82d8b53e6fe29391714b916fb3c (patch)
tree2eda2715efcd9bb1c082ba68e183498df9697535 /src/cadet/gnunet-service-cadet_tunnels.h
parent586f250f1603572861af4b1bf570b3a253306bbf (diff)
downloadgnunet-9285bb74e36fc82d8b53e6fe29391714b916fb3c.tar.gz
gnunet-9285bb74e36fc82d8b53e6fe29391714b916fb3c.zip
-DOC: First pass of new workflow over CADET subsystem.
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnels.h')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnels.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnels.h b/src/cadet/gnunet-service-cadet_tunnels.h
index aea131542..018a3ec73 100644
--- a/src/cadet/gnunet-service-cadet_tunnels.h
+++ b/src/cadet/gnunet-service-cadet_tunnels.h
@@ -252,20 +252,21 @@ GCT_send_cancel (struct CadetTunnelQueueEntry *q);
252 252
253 253
254/** 254/**
255 * Return the number of channels using a tunnel. 255 * Returns the number of channels using a tunnel.
256 * 256 *
257 * @param t tunnel to count obtain the number of channels for 257 * @param t Tunnel in question.
258 * @return number of channels using the tunnel 258 * @return Number of channels using the tunnel.
259 */ 259 */
260unsigned int 260unsigned int
261GCT_count_channels (struct CadetTunnel *t); 261GCT_count_channels (struct CadetTunnel *t);
262 262
263 263
264/** 264/**
265 * Return the number of connections available for a tunnel. 265 * Counts the number of connections created for a tunnel,
266 * including busy connections.
266 * 267 *
267 * @param t tunnel to count obtain the number of connections for 268 * @param t Tunnel to be counted.
268 * @return number of connections available for the tunnel 269 * @return Number of connections created for the tunnel.
269 */ 270 */
270unsigned int 271unsigned int
271GCT_count_any_connections (const struct CadetTunnel *t); 272GCT_count_any_connections (const struct CadetTunnel *t);
@@ -341,7 +342,9 @@ GCT_change_estate (struct CadetTunnel *t,
341 enum CadetTunnelEState state); 342 enum CadetTunnelEState state);
342 343
343/** 344/**
344 * Handle KX message. 345 * Handle KX message that lacks authentication (and which will thus
346 * only be considered authenticated after we respond with our own
347 * KX_AUTH and finally successfully decrypt the payload).
345 * 348 *
346 * @param ct connection/tunnel combo that received encrypted message 349 * @param ct connection/tunnel combo that received encrypted message
347 * @param msg the key exchange message 350 * @param msg the key exchange message