2 This file is part of GNUnet.
3 (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Christian Grothoff (and other contributing authors)
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.
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.
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.
22 * @file include/gnunet_protocols.h
23 * @brief constants for network protocols
24 * @author Christian Grothoff
27 #ifndef GNUNET_PROTOCOLS_H
28 #define GNUNET_PROTOCOLS_H
33 #if 0 /* keep Emacsens' auto-indent happy */
38 /*******************************************************************************
40 ******************************************************************************/
43 * Test if service is online.
45 #define GNUNET_MESSAGE_TYPE_TEST 1
47 /*******************************************************************************
48 * RESOLVER message types
49 ******************************************************************************/
52 * Request DNS resolution.
54 #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 4
57 * Response to a DNS resolution request.
59 #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5
61 /*******************************************************************************
63 ******************************************************************************/
66 * Request to ARM to start a service.
68 #define GNUNET_MESSAGE_TYPE_ARM_START 8
71 * Request to ARM to stop a service.
73 #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
76 * Response from ARM: service is now up.
78 #define GNUNET_MESSAGE_TYPE_ARM_IS_UP 10
81 * Response from ARM: service is now down.
82 * (failed to start it or shut it down).
84 #define GNUNET_MESSAGE_TYPE_ARM_IS_DOWN 11
87 * Response from ARM: service status is unknown.
89 #define GNUNET_MESSAGE_TYPE_ARM_IS_UNKNOWN 12
92 * Request ARM service shutdown.
94 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 13
97 * Acknowledge service shutting down, disconnect
98 * indicates service stopped.
100 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14
102 /*******************************************************************************
103 * HELLO message types
104 ******************************************************************************/
107 * HELLO message used for communicating peer addresses.
108 * Managed by libgnunethello.
110 #define GNUNET_MESSAGE_TYPE_HELLO 16
112 /*******************************************************************************
113 * FRAGMENTATION message types
114 ******************************************************************************/
117 * FRAGMENT of a larger message.
118 * Managed by libgnunetfragment.
120 #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
123 * Acknowledgement of a FRAGMENT of a larger message.
124 * Managed by libgnunetfragment.
126 #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
128 /*******************************************************************************
129 * TRANSPORT message types
130 ******************************************************************************/
133 * Message from the core saying that the transport
134 * server should start giving it messages. This
135 * should automatically trigger the transmission of
138 #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20
141 * Message from TRANSPORT notifying about a
142 * client that connected to us.
144 #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21
147 * Message from TRANSPORT notifying about a
148 * client that disconnected from us.
150 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22
153 * Request to TRANSPORT to transmit a message.
155 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23
158 * Confirmation from TRANSPORT that message for transmission has been
159 * queued (and that the next message to this peer can now be passed to
160 * the service). Note that this confirmation does NOT imply that the
161 * message was fully transmitted.
163 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24
166 * Message from TRANSPORT notifying about a
167 * message that was received.
169 #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25
172 * Message telling transport to limit its receive rate.
174 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26
177 * Request to look addresses of peers in server.
179 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27
182 * Response to the address lookup request.
184 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28
187 * Register a client that wants to do blacklisting.
189 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29
192 * Query to a blacklisting client (is this peer blacklisted)?
194 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
197 * Reply from blacklisting client (answer to blacklist query).
199 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31
202 * Transport PING message
204 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32
207 * Transport PONG message
209 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
212 * Message for transport service from a client asking that a
213 * connection be initiated with another peer.
215 #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
218 * Transport CONNECT message exchanged between transport services to
219 * indicate that a session should be marked as 'connected'.
221 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 35
224 * Transport DISCONNECT message exchanged between transport services to
225 * indicate that a connection should be dropped.
227 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 36
230 * Request to look up addresses of peers.
232 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 37
235 * Request to iterate over all known addresses.
237 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 38
240 * Message send by a peer to notify the other to keep the session alive.
242 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 39
244 /*******************************************************************************
245 * Transport-WLAN message types
246 ******************************************************************************/
249 * Type of messages between the gnunet-wlan-helper and the daemon
252 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 40
255 * Control messages between the gnunet-wlan-helper and the daemon
258 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41
261 * Type of messages for advertisement over wlan
263 #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42
266 * Type of messages for data over the wlan
268 #define GNUNET_MESSAGE_TYPE_WLAN_DATA 43
271 /*******************************************************************************
272 * Transport-DV message types
273 ******************************************************************************/
276 * DV service to DV Plugin message, when a message is
277 * unwrapped by the DV service and handed to the plugin
280 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECEIVE 44
283 * DV Plugin to DV service message, indicating a message
284 * should be sent out.
286 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
289 * DV service to DV api message, containing a confirmation
290 * or failure of a DV_SEND message.
292 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
295 * P2P DV message encapsulating some real message
297 #define GNUNET_MESSAGE_TYPE_DV_DATA 47
300 * P2P DV message gossipping peer information
302 #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
305 * DV Plugin to DV service message, indicating
308 #define GNUNET_MESSAGE_TYPE_DV_START 49
311 * P2P DV message notifying connected peers of a disconnect
313 #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
315 /*******************************************************************************
316 * Transport-UDP message types
317 ******************************************************************************/
320 * Normal UDP message type.
322 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 56
327 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57
329 /*******************************************************************************
330 * Transport-TCP message types
331 ******************************************************************************/
334 * TCP NAT probe message, send from NAT'd peer to
335 * other peer to establish bi-directional communication
337 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60
340 * Welcome message between TCP transports.
342 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
345 * Message to force transport to update bandwidth assignment (LEGACY)
347 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
349 /*******************************************************************************
351 ******************************************************************************/
354 * Message to ask NAT server to perform traversal test
356 #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
358 /*******************************************************************************
360 ******************************************************************************/
363 * Initial setup message from core client to core.
365 #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
368 * Response from core to core client to INIT message.
370 #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
373 * Notify clients about new peer-to-peer connections (before
374 * key exchange and authentication).
376 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66
379 * Notify clients about new peer-to-peer connections (triggered
380 * after key exchange).
382 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
385 * Notify clients about peer disconnecting.
387 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
390 * Notify clients about peer status change.
392 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
395 * Notify clients about incoming P2P messages.
397 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
400 * Notify clients about outgoing P2P transmissions.
402 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
405 * Request from client to "configure" P2P connection.
407 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO 72
410 * Response from server about (possibly updated) P2P
411 * connection configuration.
413 #define GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO 73
416 * Request from client to transmit message.
418 #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
421 * Confirmation from core that message can now be sent
423 #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
426 * Client with message to transmit (after SEND_READY confirmation
429 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
432 * Request from client asking to connect to a peer.
434 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT 77
437 * Request for peer iteration from CORE service.
439 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS 78
442 * Last reply from core to request for peer iteration from CORE service.
444 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
447 * Check whether a given peer is currently connected to CORE.
449 #define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
452 * Session key exchange between peers.
454 #define GNUNET_MESSAGE_TYPE_CORE_SET_KEY 81
457 * Encapsulation for an encrypted message between peers.
459 #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
462 * Check that other peer is alive (challenge).
464 #define GNUNET_MESSAGE_TYPE_CORE_PING 83
467 * Confirmation that other peer is alive.
469 #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
472 * Request by the other peer to terminate the connection.
474 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
477 * gzip-compressed type map of the sender
479 #define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86
482 * uncompressed type map of the sender
484 #define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
486 /*******************************************************************************
487 * DATASTORE message types
488 ******************************************************************************/
491 * Message sent by datastore client on join.
493 #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
496 * Message sent by datastore client on join.
498 #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
501 * Message sent by datastore to client informing about status
502 * processing a request
503 * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
505 #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
508 * Message sent by datastore client to store data.
510 #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
513 * Message sent by datastore client to update data.
515 #define GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE 96
518 * Message sent by datastore client to get data.
520 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
523 * Message sent by datastore client to get random data.
525 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
528 * Message sent by datastore client to get random data.
530 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
533 * Message sent by datastore to client providing requested data
534 * (in response to GET or GET_RANDOM request).
536 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
539 * Message sent by datastore to client signaling end of matching data.
540 * This message will also be sent for "GET_RANDOM", even though
541 * "GET_RANDOM" returns at most one data item.
543 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
546 * Message sent by datastore client to remove data.
548 #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
551 * Message sent by datastore client to drop the database.
553 #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
556 /*******************************************************************************
558 ******************************************************************************/
561 * Message sent by fs client to start indexing.
563 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
566 * Affirmative response to a request for start indexing.
568 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
571 * Response to a request for start indexing that
574 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
577 * Request from client for list of indexed files.
579 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
582 * Reply to client with an indexed file name.
584 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
587 * Reply to client indicating end of list.
589 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
592 * Request from client to unindex a file.
594 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
597 * Reply to client indicating unindex receipt.
599 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
602 * Client asks FS service to start a (keyword) search.
604 #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
607 * P2P request for content (one FS to another).
609 #define GNUNET_MESSAGE_TYPE_FS_GET 137
612 * P2P response with content or active migration of content. Also
613 * used between the service and clients (in response to START_SEARCH).
615 #define GNUNET_MESSAGE_TYPE_FS_PUT 138
618 * Peer asks us to stop migrating content towards it for a while.
620 #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
623 /*******************************************************************************
625 ******************************************************************************/
628 * Client wants to store item in DHT.
630 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 142
633 * Client wants to lookup item in DHT.
635 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 143
638 * Client wants to stop search in DHT.
640 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 144
643 * Service returns result to client.
645 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 145
648 * Peer is storing data in DHT.
650 #define GNUNET_MESSAGE_TYPE_DHT_P2P_PUT 146
653 * Peer tries to find data in DHT.
655 #define GNUNET_MESSAGE_TYPE_DHT_P2P_GET 147
658 * Data is returned to peer from DHT.
660 #define GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 148
662 // LEGACY types follow (pre3)......
665 * Local DHT route request type
667 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142
670 * Local generic DHT route result type
672 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143
675 * P2P DHT route request type
677 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE 144
680 * P2P DHT route result type
682 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE_RESULT 145
685 * Local generic DHT message stop type
687 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146
690 * Local and P2P DHT PUT message
691 * (encapsulated in DHT_ROUTE message)
693 #define GNUNET_MESSAGE_TYPE_DHT_PUT 147
696 * Local and P2P DHT GET message
697 * (encapsulated in DHT_ROUTE message)
699 #define GNUNET_MESSAGE_TYPE_DHT_GET 148
702 * Local and P2P DHT Get result message
704 #define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 149
707 * Local and P2P DHT find peer message
709 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER 150
712 * Local and P2P DHT find peer result message
714 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_RESULT 151
718 * DHT Control message type, for telling the
719 * DHT to alter its current operation somehow.
721 #define GNUNET_MESSAGE_TYPE_DHT_CONTROL 153
724 * Local control message type, tells peer to start
725 * issuing malicious GET requests.
727 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET 154
730 * Local control message type, tells peer to start
731 * issuing malicious PUT requests.
733 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT 155
736 * Local control message type, tells peer to start
737 * dropping all requests.
739 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_DROP 156
741 /*******************************************************************************
742 * HOSTLIST message types
743 ******************************************************************************/
746 * Hostlist advertisement message
748 #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
751 /*******************************************************************************
752 * STATISTICS message types
753 ******************************************************************************/
756 * Set a statistical value.
758 #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
761 * Get a statistical value(s).
763 #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
766 * Response to a STATISTICS_GET message (with value).
768 #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
771 * Response to a STATISTICS_GET message (end of value stream).
773 #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
776 * Watch changes to a statistical value. Message format is the same
777 * as for GET, except that the subsystem and entry name must be given.
779 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
782 * Changes to a watched value.
784 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
787 /*******************************************************************************
789 ******************************************************************************/
792 * Type of messages between the gnunet-vpn-helper and the daemon
794 #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
797 * Type of messages containing an UDP packet for a service
799 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP 186
802 * Type of messages containing an UDP packet from a service
804 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP_BACK 187
807 * Type of messages containing an TCP packet for a service
809 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_TCP 188
812 * Type of messages containing an TCP packet from a service
814 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_TCP_BACK 189
817 * Type of messages containing an UDP packet for a remote host
819 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_UDP 190
822 * Type of messages containing an UDP packet from a remote host
824 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_UDP_BACK 191
827 * Type of messages containing an TCP packet for a remote host
829 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_TCP 192
832 * Type of messages containing an TCP packet from a remote host
834 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_TCP_BACK 193
837 /*******************************************************************************
838 * VPN-DNS message types
839 ******************************************************************************/
842 * Type of messages to query the local service-dns
844 #define GNUNET_MESSAGE_TYPE_VPN_DNS_LOCAL_QUERY_DNS 205
846 * Type of messages the local service-dns responds with
848 #define GNUNET_MESSAGE_TYPE_VPN_DNS_LOCAL_RESPONSE_DNS 206
850 * Type of messages to instruct the local service-dns to rehijack the dns
852 #define GNUNET_MESSAGE_TYPE_REHIJACK 207
854 * Type of messages to send a DNS-query to another peer
856 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_QUERY_DNS 208
858 * Type of messages to send a DNS-answer to another peer
860 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_ANSWER_DNS 209
864 /*******************************************************************************
866 ******************************************************************************/
869 * Type of message used to transport messages throug a MESH-tunnel (LEGACY)
871 #define GNUNET_MESSAGE_TYPE_MESH 215
874 * Type of message used to send another peer which messages we want to receive
875 * through a mesh-tunnel (LEGACY)
877 #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
881 * Request the creation of a path
883 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256
886 * Request the modification of an existing path
888 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257
891 * Request the addition to a new branch to a path
893 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ADD 258
896 * At some point, the route will spontaneously change
898 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259
901 * Transport data in the mesh (origin->end) unicast
903 #define GNUNET_MESSAGE_TYPE_MESH_UNICAST 260
906 * Transport data to all peers in a tunnel
908 #define GNUNET_MESSAGE_TYPE_MESH_MULTICAST 261
911 * Transport data back in the mesh (end->origin)
913 #define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN 262
916 * Send origin an ACK that the path is complete
918 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263
921 * We need flow control
923 #define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270
926 * Connect to the mesh service, specifying subscriptions
928 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272
931 * Ask the mesh service to create a new tunnel
933 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE 273
936 * Ask the mesh service to destroy a tunnel
938 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY 274
941 * Ask the mesh service to add a peer to an existing tunnel
943 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD 275
946 * Ask the mesh service to remove a peer from a tunnel
948 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL 276
951 * Ask the mesh service to add a peer offering a service to an existing tunnel
953 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE 277
956 * 640kb should be enough for everybody
958 #define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288
962 /*******************************************************************************
963 * CHAT message types START
964 ******************************************************************************/
967 * Message sent from client to join a chat room.
969 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
972 * Message sent to client to indicate joining of another room member.
974 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
977 * Message sent to client to indicate leaving of another room member.
979 #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
982 * Notification sent by service to client indicating that we've received a chat
985 #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
988 * Request sent by client to transmit a chat message to another room members.
990 #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
993 * Receipt sent from a message receiver to the service to confirm delivery of
996 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
999 * Notification sent from the service to the original sender
1000 * to acknowledge delivery of a chat message.
1002 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
1005 * P2P message sent to indicate joining of another room member.
1007 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
1010 * P2P message sent to indicate leaving of another room member.
1012 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
1015 * P2P message sent to a newly connected peer to request its known clients in
1016 * order to synchronize room members.
1018 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
1021 * Notification sent from one peer to another to indicate that we have received
1024 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
1027 * P2P receipt confirming delivery of a chat message.
1029 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
1032 /*******************************************************************************
1033 * NSE (network size estimation) message types
1034 ******************************************************************************/
1037 * client->service message indicating start
1039 #define GNUNET_MESSAGE_TYPE_NSE_START 321
1042 * P2P message sent from nearest peer
1044 #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
1047 * service->client message indicating
1049 #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
1052 /*******************************************************************************
1053 * PEERINFO message types
1054 ******************************************************************************/
1057 * Request update and listing of a peer.
1059 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330
1062 * Request update and listing of all peers.
1064 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331
1067 * Information about one of the peers.
1069 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332
1072 * End of information about other peers.
1074 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333
1077 * Start notifying this client about all changes to
1078 * the known peers until it disconnects.
1080 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334
1082 /*******************************************************************************
1083 * TODO: we need a way to register message types centrally (via some webpage).
1084 * For now: unofficial extensions should start at 48k, internal extensions
1085 * define here should leave some room (4-10 additional messages to the previous
1087 ******************************************************************************/
1090 * Type used to match 'all' message types.
1092 #define GNUNET_MESSAGE_TYPE_ALL 65535
1095 #if 0 /* keep Emacsens' auto-indent happy */
1102 /* ifndef GNUNET_PROTOCOLS_H */
1104 /* end of gnunet_protocols.h */