aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet-new_connection.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-17 11:54:31 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-17 11:54:31 +0100
commit500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d (patch)
tree9a80967af02b49319d0ab406b0ec9fa3d31e13fd /src/cadet/gnunet-service-cadet-new_connection.h
parentd0bb14e2a958f4f816c6c006dd8b7a979e6de289 (diff)
downloadgnunet-500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d.tar.gz
gnunet-500842f42c4e51c4c5fc3c1cdfc1c1f7166b2d0d.zip
more work on new CADET
Diffstat (limited to 'src/cadet/gnunet-service-cadet-new_connection.h')
-rw-r--r--src/cadet/gnunet-service-cadet-new_connection.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_connection.h b/src/cadet/gnunet-service-cadet-new_connection.h
index c11e34024..c9738d86e 100644
--- a/src/cadet/gnunet-service-cadet-new_connection.h
+++ b/src/cadet/gnunet-service-cadet-new_connection.h
@@ -60,6 +60,7 @@ GCC_destroy (struct CadetConnection *cc);
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 ready_cb function to call when ready to transmit 61 * @param ready_cb function to call when ready to transmit
62 * @param ready_cb_cls closure for @a cb 62 * @param ready_cb_cls closure for @a cb
63 * @return handle to the connection
63 */ 64 */
64struct CadetConnection * 65struct CadetConnection *
65GCC_create (struct CadetPeer *destination, 66GCC_create (struct CadetPeer *destination,
@@ -75,11 +76,14 @@ GCC_create (struct CadetPeer *destination,
75 * connection is right now ready for transmission. 76 * connection is right now ready for transmission.
76 * 77 *
77 * @param cc connection identification 78 * @param cc connection identification
78 * @param msg message to transmit 79 * @param env envelope with message to transmit;
80 * the #GNUNET_MQ_notify_send() must not have yet been used
81 * for the envelope. Also, the message better match the
82 * connection identifier of this connection...
79 */ 83 */
80void 84void
81GCC_transmit (struct CadetConnection *cc, 85GCC_transmit (struct CadetConnection *cc,
82 const struct GNUNET_MessageHeader *msg); 86 struct GNUNET_MQ_Envelope *env);
83 87
84 88
85/** 89/**
@@ -103,6 +107,17 @@ GCC_get_id (struct CadetConnection *cc);
103 107
104 108
105/** 109/**
110 * Get the connection ID as a full hash.
111 *
112 * @param cc Connection to get the ID from.
113 * @return full hash ID of the connection.
114 * @deprecated try to replace use of full hash codes eventually...
115 */
116const struct GNUNET_HashCode *
117GCC_get_h (const struct CadetConnection *cc);
118
119
120/**
106 * Log connection info. 121 * Log connection info.
107 * 122 *
108 * @param cc connection 123 * @param cc connection