diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-17 14:20:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-17 14:20:59 +0100 |
commit | 23c86a4ca5d1cd879550cd07afed4869475fb765 (patch) | |
tree | a8eace7b55bcbf3545e1590c7868f52b6b6dfeb4 /src/cadet/gnunet-service-cadet-new_connection.h | |
parent | 500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d (diff) | |
download | gnunet-23c86a4ca5d1cd879550cd07afed4869475fb765.tar.gz gnunet-23c86a4ca5d1cd879550cd07afed4869475fb765.zip |
importing KX logic, integrating encryption logic
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_connection.h')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_connection.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_connection.h b/src/cadet/gnunet-service-cadet-new_connection.h index c9738d86e..66d19ae0c 100644 --- a/src/cadet/gnunet-service-cadet-new_connection.h +++ b/src/cadet/gnunet-service-cadet-new_connection.h | |||
@@ -58,6 +58,7 @@ GCC_destroy (struct CadetConnection *cc); | |||
58 | * | 58 | * |
59 | * @param destination where to go | 59 | * @param destination where to go |
60 | * @param path which path to take (may not be the full path) | 60 | * @param path which path to take (may not be the full path) |
61 | * @param ct which tunnel uses this connection | ||
61 | * @param ready_cb function to call when ready to transmit | 62 | * @param ready_cb function to call when ready to transmit |
62 | * @param ready_cb_cls closure for @a cb | 63 | * @param ready_cb_cls closure for @a cb |
63 | * @return handle to the connection | 64 | * @return handle to the connection |
@@ -65,6 +66,7 @@ GCC_destroy (struct CadetConnection *cc); | |||
65 | struct CadetConnection * | 66 | struct CadetConnection * |
66 | GCC_create (struct CadetPeer *destination, | 67 | GCC_create (struct CadetPeer *destination, |
67 | struct CadetPeerPath *path, | 68 | struct CadetPeerPath *path, |
69 | struct CadetTConnection *ct, | ||
68 | GNUNET_SCHEDULER_TaskCallback ready_cb, | 70 | GNUNET_SCHEDULER_TaskCallback ready_cb, |
69 | void *ready_cb_cls); | 71 | void *ready_cb_cls); |
70 | 72 | ||
@@ -87,6 +89,16 @@ GCC_transmit (struct CadetConnection *cc, | |||
87 | 89 | ||
88 | 90 | ||
89 | /** | 91 | /** |
92 | * Return the tunnel associated with this connection. | ||
93 | * | ||
94 | * @param cc connection to query | ||
95 | * @return corresponding entry in the tunnel's connection list | ||
96 | */ | ||
97 | struct CadetTConnection * | ||
98 | GCC_get_ct (struct CadetConnection *cc); | ||
99 | |||
100 | |||
101 | /** | ||
90 | * Obtain the path used by this connection. | 102 | * Obtain the path used by this connection. |
91 | * | 103 | * |
92 | * @param cc connection | 104 | * @param cc connection |