aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet.h')
-rw-r--r--src/cadet/gnunet-service-cadet.h42
1 files changed, 18 insertions, 24 deletions
diff --git a/src/cadet/gnunet-service-cadet.h b/src/cadet/gnunet-service-cadet.h
index 3daeeff74..8decdba0d 100644
--- a/src/cadet/gnunet-service-cadet.h
+++ b/src/cadet/gnunet-service-cadet.h
@@ -12,12 +12,12 @@
12 WITHOUT ANY WARRANTY; without even the implied warranty of 12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Affero General Public License for more details. 14 Affero General Public License for more details.
15 15
16 You should have received a copy of the GNU Affero General Public License 16 You should have received a copy of the GNU Affero General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 SPDX-License-Identifier: AGPL3.0-or-later 19 SPDX-License-Identifier: AGPL3.0-or-later
20*/ 20 */
21 21
22/** 22/**
23 * @file cadet/gnunet-service-cadet.h 23 * @file cadet/gnunet-service-cadet.h
@@ -64,8 +64,7 @@ struct CadetPeerPath;
64/** 64/**
65 * Entry in a peer path. 65 * Entry in a peer path.
66 */ 66 */
67struct CadetPeerPathEntry 67struct CadetPeerPathEntry {
68{
69 /** 68 /**
70 * DLL of paths where the same @e peer is at the same offset. 69 * DLL of paths where the same @e peer is at the same offset.
71 */ 70 */
@@ -99,14 +98,12 @@ struct CadetPeerPathEntry
99 * against overflows. 98 * against overflows.
100 */ 99 */
101 int score; 100 int score;
102
103}; 101};
104 102
105/** 103/**
106 * Entry in list of connections used by tunnel, with metadata. 104 * Entry in list of connections used by tunnel, with metadata.
107 */ 105 */
108struct CadetTConnection 106struct CadetTConnection {
109{
110 /** 107 /**
111 * Next in DLL. 108 * Next in DLL.
112 */ 109 */
@@ -147,9 +144,7 @@ struct CadetTConnection
147/** 144/**
148 * Port opened by a client. 145 * Port opened by a client.
149 */ 146 */
150struct OpenPort 147struct OpenPort {
151{
152
153 /** 148 /**
154 * Client that opened the port. 149 * Client that opened the port.
155 */ 150 */
@@ -164,7 +159,6 @@ struct OpenPort
164 * Port hashed with our PID (matches incoming OPEN messages). 159 * Port hashed with our PID (matches incoming OPEN messages).
165 */ 160 */
166 struct GNUNET_HashCode h_port; 161 struct GNUNET_HashCode h_port;
167
168}; 162};
169 163
170 164
@@ -272,8 +266,8 @@ extern unsigned long long drop_percent;
272 * @param env envelope with the message 266 * @param env envelope with the message
273 */ 267 */
274void 268void
275GSC_send_to_client (struct CadetClient *c, 269GSC_send_to_client(struct CadetClient *c,
276 struct GNUNET_MQ_Envelope *env); 270 struct GNUNET_MQ_Envelope *env);
277 271
278 272
279/** 273/**
@@ -284,9 +278,9 @@ GSC_send_to_client (struct CadetClient *c,
284 * @param ch the channel object 278 * @param ch the channel object
285 */ 279 */
286void 280void
287GSC_handle_remote_channel_destroy (struct CadetClient *c, 281GSC_handle_remote_channel_destroy(struct CadetClient *c,
288 struct GNUNET_CADET_ClientChannelNumber ccn, 282 struct GNUNET_CADET_ClientChannelNumber ccn,
289 struct CadetChannel *ch); 283 struct CadetChannel *ch);
290 284
291/** 285/**
292 * A client that created a loose channel that was not bound to a port 286 * A client that created a loose channel that was not bound to a port
@@ -296,8 +290,8 @@ GSC_handle_remote_channel_destroy (struct CadetClient *c,
296 * @param ch the channel that was lost 290 * @param ch the channel that was lost
297 */ 291 */
298void 292void
299GSC_drop_loose_channel (const struct GNUNET_HashCode *h_port, 293GSC_drop_loose_channel(const struct GNUNET_HashCode *h_port,
300 struct CadetChannel *ch); 294 struct CadetChannel *ch);
301 295
302 296
303/** 297/**
@@ -312,11 +306,11 @@ GSC_drop_loose_channel (const struct GNUNET_HashCode *h_port,
312 * @return local channel number assigned to the new client 306 * @return local channel number assigned to the new client
313 */ 307 */
314struct GNUNET_CADET_ClientChannelNumber 308struct GNUNET_CADET_ClientChannelNumber
315GSC_bind (struct CadetClient *c, 309GSC_bind(struct CadetClient *c,
316 struct CadetChannel *ch, 310 struct CadetChannel *ch,
317 struct CadetPeer *dest, 311 struct CadetPeer *dest,
318 const struct GNUNET_HashCode *port, 312 const struct GNUNET_HashCode *port,
319 uint32_t options); 313 uint32_t options);
320 314
321 315
322/** 316/**
@@ -326,7 +320,7 @@ GSC_bind (struct CadetClient *c,
326 * @return string for debugging 320 * @return string for debugging
327 */ 321 */
328const char * 322const char *
329GSC_2s (struct CadetClient *c); 323GSC_2s(struct CadetClient *c);
330 324
331 325
332#endif 326#endif