aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-22 20:15:18 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-22 20:15:18 +0000
commit26fe175a9b52e63790ae673b602d4c1bb50c6c12 (patch)
tree5f5402d84d38092a7d575a449bc532c853f26260 /src
parent3d7721605b69d913000774814146762e560aa2fb (diff)
downloadgnunet-26fe175a9b52e63790ae673b602d4c1bb50c6c12.tar.gz
gnunet-26fe175a9b52e63790ae673b602d4c1bb50c6c12.zip
-doxygen, cleanup
Diffstat (limited to 'src')
-rw-r--r--src/transport/transport.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index ceeaf9c0d..40349c57c 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors) 3 (C) 2009-2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -72,11 +72,12 @@
72 * @param bandwidth_out outbound bandwidth in NBO 72 * @param bandwidth_out outbound bandwidth in NBO
73 * 73 *
74 */ 74 */
75typedef void
76(*NotifyConnect) (void *cls,
77 const struct GNUNET_PeerIdentity *peer,
78 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
79 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out);
75 80
76typedef void (*NotifyConnect) (void *cls,
77 const struct GNUNET_PeerIdentity *peer,
78 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
79 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out);
80 81
81GNUNET_NETWORK_STRUCT_BEGIN 82GNUNET_NETWORK_STRUCT_BEGIN
82 83
@@ -89,7 +90,7 @@ struct StartMessage
89{ 90{
90 91
91 /** 92 /**
92 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_START 93 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_START
93 */ 94 */
94 struct GNUNET_MessageHeader header; 95 struct GNUNET_MessageHeader header;
95 96
@@ -117,7 +118,7 @@ struct ConnectInfoMessage
117{ 118{
118 119
119 /** 120 /**
120 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 121 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT
121 */ 122 */
122 struct GNUNET_MessageHeader header; 123 struct GNUNET_MessageHeader header;
123 124
@@ -146,7 +147,7 @@ struct DisconnectInfoMessage
146{ 147{
147 148
148 /** 149 /**
149 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 150 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT
150 */ 151 */
151 struct GNUNET_MessageHeader header; 152 struct GNUNET_MessageHeader header;
152 153
@@ -176,7 +177,7 @@ struct TransportRequestConnectMessage
176 struct GNUNET_MessageHeader header; 177 struct GNUNET_MessageHeader header;
177 178
178 /** 179 /**
179 * Connect (GNUNET_YES) or connect (GNUNET_NO). 180 * Connect (#GNUNET_YES) or connect (#GNUNET_NO).
180 */ 181 */
181 uint32_t connect; 182 uint32_t connect;
182 183
@@ -195,7 +196,7 @@ struct QuotaSetMessage
195{ 196{
196 197
197 /** 198 /**
198 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 199 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA
199 */ 200 */
200 struct GNUNET_MessageHeader header; 201 struct GNUNET_MessageHeader header;
201 202
@@ -220,7 +221,7 @@ struct InboundMessage
220{ 221{
221 222
222 /** 223 /**
223 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 224 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_RECV
224 */ 225 */
225 struct GNUNET_MessageHeader header; 226 struct GNUNET_MessageHeader header;
226 227
@@ -240,19 +241,18 @@ struct SendOkMessage
240{ 241{
241 242
242 /** 243 /**
243 * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 244 * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK
244 */ 245 */
245 struct GNUNET_MessageHeader header; 246 struct GNUNET_MessageHeader header;
246 247
247 /** 248 /**
248 * GNUNET_OK if the transmission succeeded, 249 * #GNUNET_OK if the transmission succeeded,
249 * GNUNET_SYSERR if it failed (i.e. network disconnect); 250 * #GNUNET_SYSERR if it failed (i.e. network disconnect);
250 * in either case, it is now OK for this client to 251 * in either case, it is now OK for this client to
251 * send us another message for the given peer. 252 * send us another message for the given peer.
252 */ 253 */
253 uint32_t success GNUNET_PACKED; 254 uint32_t success GNUNET_PACKED;
254 255
255
256 /** 256 /**
257 * Size of message sent 257 * Size of message sent
258 */ 258 */