aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-28 11:52:24 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-28 11:52:24 +0000
commit52b1e93868e661c12273a4fac3033974bdf53ec4 (patch)
tree7a9a4c1274d98e0484473bb94e9670f4de902905
parentac930dcaf830b5f87c477a1246e28a4027f12d9d (diff)
downloadgnunet-52b1e93868e661c12273a4fac3033974bdf53ec4.tar.gz
gnunet-52b1e93868e661c12273a4fac3033974bdf53ec4.zip
moving transport protocol section
-rw-r--r--src/include/gnunet_protocols.h263
1 files changed, 135 insertions, 128 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 3d9967c55..761cb5a93 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -131,134 +131,6 @@ extern "C"
131#define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19 131#define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
132 132
133/******************************************************************************* 133/*******************************************************************************
134 * TRANSPORT message types
135 ******************************************************************************/
136
137/**
138 * Message from the core saying that the transport
139 * server should start giving it messages. This
140 * should automatically trigger the transmission of
141 * a HELLO message.
142 */
143#define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20
144
145/**
146 * Message from TRANSPORT notifying about a
147 * client that connected to us.
148 */
149#define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21
150
151/**
152 * Message from TRANSPORT notifying about a
153 * client that disconnected from us.
154 */
155#define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22
156
157/**
158 * Request to TRANSPORT to transmit a message.
159 */
160#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23
161
162/**
163 * Confirmation from TRANSPORT that message for transmission has been
164 * queued (and that the next message to this peer can now be passed to
165 * the service). Note that this confirmation does NOT imply that the
166 * message was fully transmitted.
167 */
168#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24
169
170/**
171 * Message from TRANSPORT notifying about a
172 * message that was received.
173 */
174#define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25
175
176/**
177 * Message telling transport to limit its receive rate.
178 */
179#define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26
180
181/**
182 * Request to look addresses of peers in server.
183 */
184#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27
185
186/**
187 * Response to the address lookup request.
188 */
189#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28
190
191/**
192 * Register a client that wants to do blacklisting.
193 */
194#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29
195
196/**
197 * Query to a blacklisting client (is this peer blacklisted)?
198 */
199#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
200
201/**
202 * Reply from blacklisting client (answer to blacklist query).
203 */
204#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31
205
206/**
207 * Transport PING message
208 */
209#define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32
210
211/**
212 * Transport PONG message
213 */
214#define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
215
216/**
217 * Message for transport service from a client asking that a
218 * connection be initiated with another peer.
219 */
220#define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
221
222/**
223 * Transport CONNECT message exchanged between transport services to
224 * indicate that a session should be marked as 'connected'.
225 */
226#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 35
227
228/**
229 * Transport CONNECT_ACK message exchanged between transport services to
230 * indicate that a CONNECT message was accepted
231 */
232#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT_ACK 350
233
234/**
235 * Transport CONNECT_ACK message exchanged between transport services to
236 * indicate that a CONNECT message was accepted
237 */
238#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK 351
239
240/**
241 * Transport DISCONNECT message exchanged between transport services to
242 * indicate that a connection should be dropped.
243 */
244#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 36
245
246/**
247 * Request to look up addresses of peers.
248 */
249#define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 37
250
251/**
252 * Request to iterate over all known addresses.
253 */
254#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 38
255
256/**
257 * Message send by a peer to notify the other to keep the session alive.
258 */
259#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 39
260
261/*******************************************************************************
262 * Transport-WLAN message types 134 * Transport-WLAN message types
263 ******************************************************************************/ 135 ******************************************************************************/
264 136
@@ -1083,6 +955,141 @@ extern "C"
1083#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349 955#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349
1084 956
1085 957
958
959/*******************************************************************************
960 * TRANSPORT message types
961 ******************************************************************************/
962
963/**
964 * Message from the core saying that the transport
965 * server should start giving it messages. This
966 * should automatically trigger the transmission of
967 * a HELLO message.
968 */
969#define GNUNET_MESSAGE_TYPE_TRANSPORT_START 360
970
971/**
972 * Message from TRANSPORT notifying about a
973 * client that connected to us.
974 */
975#define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 361
976
977/**
978 * Message from TRANSPORT notifying about a
979 * client that disconnected from us.
980 */
981#define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 362
982
983/**
984 * Request to TRANSPORT to transmit a message.
985 */
986#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 363
987
988/**
989 * Confirmation from TRANSPORT that message for transmission has been
990 * queued (and that the next message to this peer can now be passed to
991 * the service). Note that this confirmation does NOT imply that the
992 * message was fully transmitted.
993 */
994#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 364
995
996/**
997 * Message from TRANSPORT notifying about a
998 * message that was received.
999 */
1000#define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 365
1001
1002/**
1003 * Message telling transport to limit its receive rate.
1004 */
1005#define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 366
1006
1007/**
1008 * Request to look addresses of peers in server.
1009 */
1010#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 367
1011
1012/**
1013 * Response to the address lookup request.
1014 */
1015#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 368
1016
1017/**
1018 * Register a client that wants to do blacklisting.
1019 */
1020#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 369
1021
1022/**
1023 * Query to a blacklisting client (is this peer blacklisted)?
1024 */
1025#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 370
1026
1027/**
1028 * Reply from blacklisting client (answer to blacklist query).
1029 */
1030#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 371
1031
1032/**
1033 * Transport PING message
1034 */
1035#define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 372
1036
1037/**
1038 * Transport PONG message
1039 */
1040#define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 373
1041
1042/**
1043 * Message for transport service from a client asking that a
1044 * connection be initiated with another peer.
1045 */
1046#define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 374
1047
1048/**
1049 * Transport CONNECT message exchanged between transport services to
1050 * indicate that a session should be marked as 'connected'.
1051 */
1052#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 375
1053
1054/**
1055 * Transport CONNECT_ACK message exchanged between transport services to
1056 * indicate that a CONNECT message was accepted
1057 */
1058#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT_ACK 376
1059
1060/**
1061 * Transport CONNECT_ACK message exchanged between transport services to
1062 * indicate that a CONNECT message was accepted
1063 */
1064#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK 377
1065
1066/**
1067 * Transport DISCONNECT message exchanged between transport services to
1068 * indicate that a connection should be dropped.
1069 */
1070#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 378
1071
1072/**
1073 * Request to look up addresses of peers.
1074 */
1075#define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 379
1076
1077/**
1078 * Request to iterate over all known addresses.
1079 */
1080#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 380
1081
1082/**
1083 * Message send by a peer to notify the other to keep the session alive.
1084 */
1085#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 381
1086
1087
1088
1089/**
1090 * Next available: 400
1091 */
1092
1086/******************************************************************************* 1093/*******************************************************************************
1087 * TODO: we need a way to register message types centrally (via some webpage). 1094 * TODO: we need a way to register message types centrally (via some webpage).
1088 * For now: unofficial extensions should start at 48k, internal extensions 1095 * For now: unofficial extensions should start at 48k, internal extensions