debug output
[oweals/gnunet.git] / src / include / gnunet_protocols.h
1 /*
2      This file is part of GNUnet.
3      (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Christian Grothoff (and other contributing authors)
4
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
7      by the Free Software Foundation; either version 2, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20
21 /**
22  * @file include/gnunet_protocols.h
23  * @brief constants for network protocols
24  * @author Christian Grothoff
25  */
26
27 #ifndef GNUNET_PROTOCOLS_H
28 #define GNUNET_PROTOCOLS_H
29
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #if 0                           /* keep Emacsens' auto-indent happy */
34 }
35 #endif
36 #endif
37
38 /**
39  * Test if service is online.
40  */
41 #define GNUNET_MESSAGE_TYPE_TEST 1
42
43
44 /**
45  * Request DNS resolution.
46  */
47 #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 2
48
49 /**
50  * Response to a DNS resolution request.
51  */
52 #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 3
53
54
55
56 /**
57  * Request to ARM to start a service.
58  */
59 #define GNUNET_MESSAGE_TYPE_ARM_START 8
60
61 /**
62  * Request to ARM to stop a service.
63  */
64 #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
65
66 /**
67  * Response from ARM: service is now up.
68  */
69 #define GNUNET_MESSAGE_TYPE_ARM_IS_UP 10
70
71 /**
72  * Response from ARM: service is now down.
73  * (failed to start it or shut it down).
74  */
75 #define GNUNET_MESSAGE_TYPE_ARM_IS_DOWN 11
76
77 /**
78  * Response from ARM: service status is unknown.
79  */
80 #define GNUNET_MESSAGE_TYPE_ARM_IS_UNKNOWN 12
81
82 /**
83  * Request ARM service shutdown.
84  */
85 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 13
86
87 /**
88  * Acknowledge service shutting down, disconnect
89  * indicates service stopped.
90  */
91 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14
92
93 /**
94  * HELLO message used for communicating peer addresses.
95  * Managed by libgnunethello.
96  */
97 #define GNUNET_MESSAGE_TYPE_HELLO 16
98
99 /**
100  * FRAGMENT of a larger message.
101  * Managed by libgnunetfragment.
102  */
103 #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
104
105 /**
106  * Acknowledgement of a FRAGMENT of a larger message.
107  * Managed by libgnunetfragment.
108  */
109 #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
110
111 /**
112  * Message from the core saying that the transport
113  * server should start giving it messages.  This
114  * should automatically trigger the transmission of
115  * a HELLO message.
116  */
117 #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20
118
119 /**
120  * Message from TRANSPORT notifying about a
121  * client that connected to us.
122  */
123 #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21
124
125 /**
126  * Message from TRANSPORT notifying about a
127  * client that disconnected from us.
128  */
129 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22
130
131 /**
132  * Request to TRANSPORT to transmit a message.
133  */
134 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23
135
136 /**
137  * Confirmation from TRANSPORT that message for
138  * transmission has been queued (and that the next
139  * message to this peer can now be passed to the
140  * service).  Note that this confirmation does NOT
141  * imply that the message was fully transmitted.
142  */
143 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24
144
145 /**
146  * Message from TRANSPORT notifying about a
147  * message that was received.
148  */
149 #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25
150
151 /**
152  * Message telling transport to limit its receive rate.
153  */
154 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26
155
156 /**
157  * Request to look addresses of peers in server.
158  */
159 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27
160
161 /**
162  * Response to the address lookup request.
163  */
164 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28
165
166 /**
167  * Register a client that wants to do blacklisting.
168  */
169 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29
170
171 /**
172  * Query to a blacklisting client (is this peer blacklisted)?
173  */
174 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
175
176
177 /**
178  * Reply from blacklisting client (answer to blacklist query).
179  */
180 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31
181
182 /**
183  * Transport PING message
184  */
185 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32
186
187 /**
188  * Transport PONG message
189  */
190 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
191
192 /**
193  * Message for TRANSPORT asking that a connection
194  * be initiated with a peer.
195  */
196 #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
197
198 /**
199  * Request update and listing of a peer.
200  */
201 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 37
202
203 /**
204  * Request update and listing of all peers.
205  */
206 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 38
207
208 /**
209  * Information about one of the peers.
210  */
211 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 39
212
213 /**
214  * End of information about other peers.
215  */
216 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 40
217
218 /**
219  * Start notifying this client about all changes to
220  * the known peers until it disconnects.
221  */
222 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41
223
224 /**
225  * DV service to DV Plugin message, when a message is
226  * unwrapped by the DV service and handed to the plugin
227  * for processing
228  */
229 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECEIVE 44
230
231 /**
232  * DV Plugin to DV service message, indicating a message
233  * should be sent out.
234  */
235 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
236
237 /**
238  * DV service to DV api message, containing a confirmation
239  * or failure of a DV_SEND message.
240  */
241 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
242
243 /**
244  * P2P DV message encapsulating some real message
245  */
246 #define GNUNET_MESSAGE_TYPE_DV_DATA 47
247
248 /**
249  * P2P DV message gossipping peer information
250  */
251 #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
252
253 /**
254  * DV Plugin to DV service message, indicating
255  * startup.
256  */
257 #define GNUNET_MESSAGE_TYPE_DV_START 49
258
259 /**
260  * P2P DV message notifying connected peers of a disconnect
261  */
262 #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
263
264 /**
265  * TCP NAT probe message, send from NAT'd peer to
266  * other peer to establish bi-directional communication
267  */
268 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 51
269
270 /**
271  * Normal UDP message type.
272  */
273 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 52
274
275 /**
276  * Fragmented part of a UDP message.
277  */
278 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE_PART 53
279
280 /**
281  * UDP NAT probe message, send from NAT'd peer to
282  * other peer to negotiate punched address/port
283  */
284 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE 55
285
286 /**
287  * UDP NAT probe reply, sent from a non-NAT'd peer to
288  * a NAT'd one to inform it we got the probe and of the
289  * address/port seen
290  */
291 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_REPLY 56
292
293 /**
294  * UDP NAT probe confirmation, sent from a NAT'd peer to
295  * a non-NAT'd one to inform it which port to send to us
296  * on
297  */
298 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_CONFIRM 57
299
300 /**
301  * UDP NAT probe keepalive, once a hole is punched the NAT'd peer
302  * needs to keep the hole alive
303  */
304 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_KEEPALIVE 58
305
306 /**
307  * Request to look up addresses of peers.
308  */
309 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 59
310
311 /**
312  * Request to iterate over all known addresses.
313  */
314 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 60
315
316 /**
317  * Welcome message between TCP transports.
318  */
319 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
320
321 /**
322  * Message to force transport to update bandwidth assignment
323  */
324 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
325
326 /**
327  * Message to ask NAT server to perform traversal test
328  */
329 #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
330
331 /**
332  * Initial setup message from core client to core.
333  */
334 #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
335
336 /**
337  * Response from core to core client to INIT message.
338  */
339 #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
340
341 /**
342  * Notify clients about new peer-to-peer connections (before
343  * key exchange and authentication).
344  */
345 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66
346
347 /**
348  * Notify clients about new peer-to-peer connections (triggered
349  * after key exchange).
350  */
351 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
352
353 /**
354  * Notify clients about peer disconnecting.
355  */
356 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
357
358 /**
359  * Notify clients about peer status change.
360  */
361 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
362
363 /**
364  * Notify clients about incoming P2P messages.
365  */
366 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
367
368 /**
369  * Notify clients about outgoing P2P transmissions.
370  */
371 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
372
373 /**
374  * Request from client to "configure" P2P connection.
375  */
376 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO 72
377
378 /**
379  * Response from server about (possibly updated) P2P
380  * connection configuration.
381  */
382 #define GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO 73
383
384 /**
385  * Request from client to transmit message.
386  */
387 #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
388
389 /**
390  * Confirmation from core that message can now be sent
391  */
392 #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
393
394 /**
395  * Client with message to transmit (after SEND_READY confirmation
396  * was received).
397  */
398 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
399
400 /**
401  * Request from client asking to connect to a peer.
402  */
403 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT 77
404
405 /**
406  * Request for peer iteration from CORE service.
407  */
408 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS 78
409
410 /**
411  * Last reply from core to request for peer iteration from CORE service.
412  */
413 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
414
415 /**
416  * Check whether a given peer is currently connected to CORE.
417  */
418 #define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
419
420 /**
421  * Session key exchange between peers.
422  */
423 #define GNUNET_MESSAGE_TYPE_CORE_SET_KEY 81
424
425 /**
426  * Encapsulation for an encrypted message between peers.
427  */
428 #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
429
430 /**
431  * Check that other peer is alive (challenge).
432  */
433 #define GNUNET_MESSAGE_TYPE_CORE_PING 83
434
435 /**
436  * Confirmation that other peer is alive.
437  */
438 #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
439
440 /**
441  * Request by the other peer to terminate the connection.
442  */
443 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
444
445 /**
446  * Message sent by datastore client on join.
447  */
448 #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
449
450 /**
451  * Message sent by datastore client on join.
452  */
453 #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
454
455 /**
456  * Message sent by datastore to client informing about status
457  * processing a request
458  * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
459  */
460 #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
461
462 /**
463  * Message sent by datastore client to store data.
464  */
465 #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
466
467 /**
468  * Message sent by datastore client to update data.
469  */
470 #define GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE 96
471
472 /**
473  * Message sent by datastore client to get data.
474  */
475 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
476
477 /**
478  * Message sent by datastore client to get random data.
479  */
480 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
481
482 /**
483  * Message sent by datastore client to get random data.
484  */
485 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
486
487 /**
488  * Message sent by datastore to client providing requested data
489  * (in response to GET or GET_RANDOM request).
490  */
491 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
492
493 /**
494  * Message sent by datastore to client signaling end of matching data.
495  * This message will also be sent for "GET_RANDOM", even though
496  * "GET_RANDOM" returns at most one data item.
497  */
498 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
499
500 /**
501  * Message sent by datastore client to remove data.
502  */
503 #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
504
505 /**
506  * Message sent by datastore client to drop the database.
507  */
508 #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
509
510
511 /**
512  * Message sent by fs client to start indexing.
513  */
514 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
515
516 /**
517  * Affirmative response to a request for start indexing.
518  */
519 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
520
521 /**
522  * Response to a request for start indexing that
523  * refuses.
524  */
525 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
526
527 /**
528  * Request from client for list of indexed files.
529  */
530 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
531
532 /**
533  * Reply to client with an indexed file name.
534  */
535 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
536
537 /**
538  * Reply to client indicating end of list.
539  */
540 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
541
542 /**
543  * Request from client to unindex a file.
544  */
545 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
546
547 /**
548  * Reply to client indicating unindex receipt.
549  */
550 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
551
552 /**
553  * Client asks FS service to start a (keyword) search.
554  */
555 #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
556
557 /**
558  * P2P request for content (one FS to another).
559  */
560 #define GNUNET_MESSAGE_TYPE_FS_GET 137
561
562 /**
563  * P2P response with content or active migration of content.  Also
564  * used between the service and clients (in response to START_SEARCH).
565  */
566 #define GNUNET_MESSAGE_TYPE_FS_PUT 138
567
568 /**
569  * Peer asks us to stop migrating content towards it for a while.
570  */
571 #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
572
573
574 /**
575  * DHT Message Types
576  */
577
578 /**
579  * Local DHT route request type
580  */
581 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142
582
583 /**
584  * Local generic DHT route result type
585  */
586 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143
587
588 /**
589  * P2P DHT route request type
590  */
591 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE 144
592
593 /**
594  * P2P DHT route result type
595  */
596 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE_RESULT 145
597
598 /**
599  * Local generic DHT message stop type
600  */
601 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146
602
603 /**
604  * Local and P2P DHT PUT message
605  * (encapsulated in DHT_ROUTE message)
606  */
607 #define GNUNET_MESSAGE_TYPE_DHT_PUT 147
608
609 /**
610  * Local and P2P DHT GET message
611  * (encapsulated in DHT_ROUTE message)
612  */
613 #define GNUNET_MESSAGE_TYPE_DHT_GET 148
614
615 /**
616  * Local and P2P DHT Get result message
617  */
618 #define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 149
619
620 /**
621  * Local and P2P DHT find peer message
622  */
623 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER 150
624
625 /**
626  * Local and P2P DHT find peer result message
627  */
628 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_RESULT 151
629
630 /**
631  * P2P DHT PING request type
632  */
633 #define GNUNET_MESSAGE_TYPE_DHT_P2P_PING 152
634
635 /**
636  * DHT Control message type, for telling the
637  * DHT to alter its current operation somehow.
638  */
639 #define GNUNET_MESSAGE_TYPE_DHT_CONTROL 153
640
641 /**
642  * Local control message type, tells peer to start
643  * issuing malicious GET requests.
644  */
645 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET 154
646
647 /**
648  * Local control message type, tells peer to start
649  * issuing malicious PUT requests.
650  */
651 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT 155
652
653 /**
654  * Local control message type, tells peer to start
655  * dropping all requests.
656  */
657 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_DROP  156
658
659 /**
660  * Hostlist advertisement message
661  */
662 #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
663
664
665 /**
666  * Set a statistical value.
667  */
668 #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
669
670 /**
671  * Get a statistical value(s).
672  */
673 #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
674
675 /**
676  * Response to a STATISTICS_GET message (with value).
677  */
678 #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
679
680 /**
681  * Response to a STATISTICS_GET message (end of value stream).
682  */
683 #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
684
685 /**
686  * Watch changes to a statistical value.  Message format is the same
687  * as for GET, except that the subsystem and entry name must be given.
688  */
689 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
690
691 /**
692  * Changes to a watched value.
693  */
694 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
695
696
697 /**
698  * Type of messages between the gnunet-vpn-helper and the daemon
699  */
700 #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
701
702 /**
703  * Type of messages containing an UDP packet for a service
704  */
705 #define GNUNET_MESSAGE_TYPE_SERVICE_UDP 186
706
707 /**
708  * Type of messages containing an UDP packet from a service
709  */
710 #define GNUNET_MESSAGE_TYPE_SERVICE_UDP_BACK 187
711
712 /**
713  * Type of messages containing an TCP packet for a service
714  */
715 #define GNUNET_MESSAGE_TYPE_SERVICE_TCP 188
716
717 /**
718  * Type of messages containing an TCP packet from a service
719  */
720 #define GNUNET_MESSAGE_TYPE_SERVICE_TCP_BACK 189
721
722 /**
723  * Type of messages containing an UDP packet for a remote host
724  */
725 #define GNUNET_MESSAGE_TYPE_REMOTE_UDP 190
726
727 /**
728  * Type of messages containing an UDP packet from a remote host
729  */
730 #define GNUNET_MESSAGE_TYPE_REMOTE_UDP_BACK 191
731
732 /**
733  * Type of messages containing an TCP packet for a remote host
734  */
735 #define GNUNET_MESSAGE_TYPE_REMOTE_TCP 192
736
737 /**
738  * Type of messages containing an TCP packet from a remote host
739  */
740 #define GNUNET_MESSAGE_TYPE_REMOTE_TCP_BACK 193
741
742
743 /**
744  * Type of messages between the gnunet-wlan-helper and the daemon
745  *
746  */
747
748 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 195
749
750 /**
751  * Control messages between the gnunet-wlan-helper and the daemon
752  */
753
754 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 196
755
756 /**
757  * Type of messages for advertisement over wlan
758  */
759 #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 197
760
761 /**
762  * Type of messages for data over the wlan
763  */
764
765 #define GNUNET_MESSAGE_TYPE_WLAN_DATA 198
766
767 /**
768  * Fragment of a message
769  */
770
771 #define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT 199
772
773 /**
774  * Fragment ack of a message
775  */
776
777 #define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT_ACK 200
778
779
780 /**
781  * Type of messages to query the local service-dns
782  */
783 #define GNUNET_MESSAGE_TYPE_LOCAL_QUERY_DNS 205
784 /**
785  * Type of messages the local service-dns responds with
786  */
787 #define GNUNET_MESSAGE_TYPE_LOCAL_RESPONSE_DNS 206
788 /**
789  * Type of messages to instruct the local service-dns to rehijack the dns
790  */
791 #define GNUNET_MESSAGE_TYPE_REHIJACK 207
792 /**
793  * Type of messages to send a DNS-query to another peer
794  */
795 #define GNUNET_MESSAGE_TYPE_REMOTE_QUERY_DNS 208
796 /**
797  * Type of messages to send a DNS-answer to another peer
798  */
799 #define GNUNET_MESSAGE_TYPE_REMOTE_ANSWER_DNS 209
800
801
802 /**
803  * Type of message used to transport messages throug a MESH-tunnel
804  */
805 #define GNUNET_MESSAGE_TYPE_MESH 215
806
807 /**
808  * Type of message used to send another peer which messages we want to receive
809  * through a mesh-tunnel.
810  */
811 #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
812
813
814 /*******************************************************************************
815  * MESH message types (WiP)
816  ******************************************************************************/
817
818 /**
819  * Request the creation of a path
820  */
821 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE   256
822
823 /**
824  * Request the modification of an existing path
825  */
826 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE   257
827
828 /**
829  * Request the addition to a new branch to a path
830  */
831 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ADD      258
832
833 /**
834  * At some point, the route will spontaneously change
835  */
836 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED  259
837
838 /**
839  * Transport data in the mesh (origin->end) unicast
840  */
841 #define GNUNET_MESSAGE_TYPE_DATA_MESSAGE_FROM_ORIGIN    260
842
843 /**
844  * Transport data to all peers in a tunnel
845  */
846 #define GNUNET_MESSAGE_TYPE_DATA_MULTICAST              261
847
848 /**
849  * Transport data back in the mesh (end->origin)
850  * (not sure if this is the right way, should be some other solution)
851  */
852 #define GNUNET_MESSAGE_TYPE_DATA_MESSAGE_TO_ORIGIN      262
853
854
855 /**
856  * We need flow control
857  */
858 #define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY           270
859
860 /**
861  * Connect to the mesh service, specifying subscriptions
862  */
863 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT                  272
864
865 /**
866  * Ask the mesh service to create a new tunnel
867  */
868 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE            273
869
870 /**
871  * Ask the mesh service to destroy a tunnel
872  */
873 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY           274
874
875 /**
876  * Ask the mesh service to add a peer to an existing tunnel
877  */
878 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_ADD         275
879
880 /**
881  * Ask the mesh service to remove a peer from a tunnel
882  */
883 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_DEL         276
884
885 /**
886  * Ask the mesh service to add a peer offering a service to an existing tunnel
887  */
888 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_BY_TYPE     277
889
890 /**
891  * Ask the mesh service to cancel a peer connection request
892  */
893 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_CANCEL      278
894
895 /**
896  * Notify a mesh client that a peer has connected to a tunnel
897  */
898 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_CONNECTED           279
899
900 /**
901  * Notify a mesh client that a peer has disconnected from a tunnel
902  */
903 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DISCONNECTED        280
904
905 /* FIXME needed? */
906 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_REQUEST_TRANSMIT_READY   281
907 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_NOTIFY_TRANSMIT_READY    282
908
909 /**
910  * Message client <-> mesh service to transport payload
911  */
912 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA                     283
913
914 /**
915  * Message client->mesh to send data to all peers connected to a tunnel
916  */
917 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA_BROADCAST           284
918
919 /**
920  * 640kb should be enough for everybody
921  */
922 #define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END   288
923
924 /*******************************************************************************
925  * MESH message types END
926  ******************************************************************************/
927
928
929
930 /*******************************************************************************
931  * CHAT message types START
932  ******************************************************************************/
933
934 /**
935  * Message sent from client to join a chat room.
936  */
937 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
938
939 /**
940  * Message sent to client to indicate joining of another room member.
941  */
942 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
943
944 /**
945  * Message sent to client to indicate leaving of another room member.
946  */
947 #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
948
949 /**
950  * Notification sent by service to client indicating that we've received a chat
951  * message.
952  */
953 #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
954
955 /**
956  * Request sent by client to transmit a chat message to another room members.
957  */
958 #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
959
960 /**
961  * Receipt sent from a message receiver to the service to confirm delivery of
962  * a chat message.
963  */
964 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
965
966 /**
967  * Notification sent from the service to the original sender
968  * to acknowledge delivery of a chat message.
969  */
970 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
971
972 /**
973  * P2P message sent to indicate joining of another room member.
974  */
975 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
976
977 /**
978  * P2P message sent to indicate leaving of another room member.
979  */
980 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
981
982 /**
983  * P2P message sent to a newly connected peer to request its known clients in
984  * order to synchronize room members.
985  */
986 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
987
988 /**
989  * Notification sent from one peer to another to indicate that we have received
990  * a chat message.
991  */
992 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
993
994 /**
995  * P2P receipt confirming delivery of a chat message.
996  */
997 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
998
999 /*******************************************************************************
1000  * CHAT message types END
1001  ******************************************************************************/
1002
1003 /*******************************************************************************
1004  * NSE (network size estimation) message types START
1005  ******************************************************************************/
1006
1007 /**
1008  * client->service message indicating start
1009  */
1010 #define GNUNET_MESSAGE_TYPE_NSE_START 321
1011
1012 /**
1013  * P2P message sent from nearest peer
1014  */
1015 #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
1016
1017 /**
1018  * service->client message indicating
1019  */
1020 #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
1021
1022 /**
1023  * Type used to match 'all' message types.
1024  */
1025 #define GNUNET_MESSAGE_TYPE_ALL 65535
1026
1027 /*
1028   TODO:
1029   - applications (FS, VPN, TRACEKIT, TBENCH)
1030 */
1031
1032
1033
1034
1035 /* BELOW: experimental student-DHT protocol codes */
1036
1037 /**
1038  * Request to join a CAN DHT
1039  */
1040 #define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REQUEST 1174
1041
1042 /**
1043  * Response to join request of a CAN DHT
1044  */
1045 #define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REPLY 1175
1046
1047 /**
1048  * Messages for swapping locations
1049  */
1050 #define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_REQUEST 1180
1051
1052 #define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_RESULT 1181
1053
1054 #define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_REQUEST 1182
1055
1056 #define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_ACK 1183
1057
1058 /**
1059  * Freenet hello message
1060  */
1061 #define GNUNET_MESSAGE_TYPE_DHT_FREENET_HELLO 1184
1062
1063
1064 #if 0                           /* keep Emacsens' auto-indent happy */
1065 {
1066 #endif
1067 #ifdef __cplusplus
1068 }
1069 #endif
1070
1071 /* ifndef GNUNET_PROTOCOLS_H */
1072 #endif
1073 /* end of gnunet_protocols.h */