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 */
39 * Test if service is online.
41 #define GNUNET_MESSAGE_TYPE_TEST 1
45 * Request DNS resolution.
47 #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 2
50 * Response to a DNS resolution request.
52 #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 3
57 * Request to ARM to start a service.
59 #define GNUNET_MESSAGE_TYPE_ARM_START 8
62 * Request to ARM to stop a service.
64 #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
67 * Response from ARM: service is now up.
69 #define GNUNET_MESSAGE_TYPE_ARM_IS_UP 10
72 * Response from ARM: service is now down.
73 * (failed to start it or shut it down).
75 #define GNUNET_MESSAGE_TYPE_ARM_IS_DOWN 11
78 * Response from ARM: service status is unknown.
80 #define GNUNET_MESSAGE_TYPE_ARM_IS_UNKNOWN 12
83 * Request ARM service shutdown.
85 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 13
88 * Acknowledge service shutting down, disconnect
89 * indicates service stopped.
91 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14
94 * HELLO message used for communicating peer addresses.
95 * Managed by libgnunethello.
97 #define GNUNET_MESSAGE_TYPE_HELLO 16
100 * FRAGMENT of a larger message.
101 * Managed by libgnunetfragment.
103 #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
106 * Acknowledgement of a FRAGMENT of a larger message.
107 * Managed by libgnunetfragment.
109 #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
112 * Message from the core saying that the transport
113 * server should start giving it messages. This
114 * should automatically trigger the transmission of
117 #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20
120 * Message from TRANSPORT notifying about a
121 * client that connected to us.
123 #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21
126 * Message from TRANSPORT notifying about a
127 * client that disconnected from us.
129 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22
132 * Request to TRANSPORT to transmit a message.
134 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23
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.
143 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24
146 * Message from TRANSPORT notifying about a
147 * message that was received.
149 #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25
152 * Message telling transport to limit its receive rate.
154 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26
157 * Request to look addresses of peers in server.
159 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27
162 * Response to the address lookup request.
164 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28
167 * Register a client that wants to do blacklisting.
169 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29
172 * Query to a blacklisting client (is this peer blacklisted)?
174 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
178 * Reply from blacklisting client (answer to blacklist query).
180 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31
183 * Transport PING message
185 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32
188 * Transport PONG message
190 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
193 * Message for TRANSPORT asking that a connection
194 * be initiated with a peer.
196 #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
199 * Request update and listing of a peer.
201 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 37
204 * Request update and listing of all peers.
206 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 38
209 * Information about one of the peers.
211 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 39
214 * End of information about other peers.
216 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 40
219 * Start notifying this client about all changes to
220 * the known peers until it disconnects.
222 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41
225 * DV service to DV Plugin message, when a message is
226 * unwrapped by the DV service and handed to the plugin
229 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECEIVE 44
232 * DV Plugin to DV service message, indicating a message
233 * should be sent out.
235 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
238 * DV service to DV api message, containing a confirmation
239 * or failure of a DV_SEND message.
241 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
244 * P2P DV message encapsulating some real message
246 #define GNUNET_MESSAGE_TYPE_DV_DATA 47
249 * P2P DV message gossipping peer information
251 #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
254 * DV Plugin to DV service message, indicating
257 #define GNUNET_MESSAGE_TYPE_DV_START 49
260 * P2P DV message notifying connected peers of a disconnect
262 #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
265 * TCP NAT probe message, send from NAT'd peer to
266 * other peer to establish bi-directional communication
268 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 51
271 * Normal UDP message type.
273 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 52
278 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 53
281 * Request to look up addresses of peers.
283 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 59
286 * Request to iterate over all known addresses.
288 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 60
291 * Welcome message between TCP transports.
293 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
296 * Message to force transport to update bandwidth assignment
298 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
301 * Message to ask NAT server to perform traversal test
303 #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
306 * Initial setup message from core client to core.
308 #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
311 * Response from core to core client to INIT message.
313 #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
316 * Notify clients about new peer-to-peer connections (before
317 * key exchange and authentication).
319 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66
322 * Notify clients about new peer-to-peer connections (triggered
323 * after key exchange).
325 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
328 * Notify clients about peer disconnecting.
330 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
333 * Notify clients about peer status change.
335 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
338 * Notify clients about incoming P2P messages.
340 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
343 * Notify clients about outgoing P2P transmissions.
345 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
348 * Request from client to "configure" P2P connection.
350 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO 72
353 * Response from server about (possibly updated) P2P
354 * connection configuration.
356 #define GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO 73
359 * Request from client to transmit message.
361 #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
364 * Confirmation from core that message can now be sent
366 #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
369 * Client with message to transmit (after SEND_READY confirmation
372 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
375 * Request from client asking to connect to a peer.
377 #define GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT 77
380 * Request for peer iteration from CORE service.
382 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS 78
385 * Last reply from core to request for peer iteration from CORE service.
387 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
390 * Check whether a given peer is currently connected to CORE.
392 #define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
395 * Session key exchange between peers.
397 #define GNUNET_MESSAGE_TYPE_CORE_SET_KEY 81
400 * Encapsulation for an encrypted message between peers.
402 #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
405 * Check that other peer is alive (challenge).
407 #define GNUNET_MESSAGE_TYPE_CORE_PING 83
410 * Confirmation that other peer is alive.
412 #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
415 * Request by the other peer to terminate the connection.
417 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
420 * gzip-compressed type map of the sender
422 #define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86
425 * uncompressed type map of the sender
427 #define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
430 * Message sent by datastore client on join.
432 #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
435 * Message sent by datastore client on join.
437 #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
440 * Message sent by datastore to client informing about status
441 * processing a request
442 * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
444 #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
447 * Message sent by datastore client to store data.
449 #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
452 * Message sent by datastore client to update data.
454 #define GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE 96
457 * Message sent by datastore client to get data.
459 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
462 * Message sent by datastore client to get random data.
464 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
467 * Message sent by datastore client to get random data.
469 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
472 * Message sent by datastore to client providing requested data
473 * (in response to GET or GET_RANDOM request).
475 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
478 * Message sent by datastore to client signaling end of matching data.
479 * This message will also be sent for "GET_RANDOM", even though
480 * "GET_RANDOM" returns at most one data item.
482 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
485 * Message sent by datastore client to remove data.
487 #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
490 * Message sent by datastore client to drop the database.
492 #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
496 * Message sent by fs client to start indexing.
498 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
501 * Affirmative response to a request for start indexing.
503 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
506 * Response to a request for start indexing that
509 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
512 * Request from client for list of indexed files.
514 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
517 * Reply to client with an indexed file name.
519 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
522 * Reply to client indicating end of list.
524 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
527 * Request from client to unindex a file.
529 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
532 * Reply to client indicating unindex receipt.
534 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
537 * Client asks FS service to start a (keyword) search.
539 #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
542 * P2P request for content (one FS to another).
544 #define GNUNET_MESSAGE_TYPE_FS_GET 137
547 * P2P response with content or active migration of content. Also
548 * used between the service and clients (in response to START_SEARCH).
550 #define GNUNET_MESSAGE_TYPE_FS_PUT 138
553 * Peer asks us to stop migrating content towards it for a while.
555 #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
563 * Local DHT route request type
565 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142
568 * Local generic DHT route result type
570 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143
573 * P2P DHT route request type
575 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE 144
578 * P2P DHT route result type
580 #define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE_RESULT 145
583 * Local generic DHT message stop type
585 #define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146
588 * Local and P2P DHT PUT message
589 * (encapsulated in DHT_ROUTE message)
591 #define GNUNET_MESSAGE_TYPE_DHT_PUT 147
594 * Local and P2P DHT GET message
595 * (encapsulated in DHT_ROUTE message)
597 #define GNUNET_MESSAGE_TYPE_DHT_GET 148
600 * Local and P2P DHT Get result message
602 #define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 149
605 * Local and P2P DHT find peer message
607 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER 150
610 * Local and P2P DHT find peer result message
612 #define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_RESULT 151
615 * P2P DHT PING request type
617 #define GNUNET_MESSAGE_TYPE_DHT_P2P_PING 152
620 * DHT Control message type, for telling the
621 * DHT to alter its current operation somehow.
623 #define GNUNET_MESSAGE_TYPE_DHT_CONTROL 153
626 * Local control message type, tells peer to start
627 * issuing malicious GET requests.
629 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET 154
632 * Local control message type, tells peer to start
633 * issuing malicious PUT requests.
635 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT 155
638 * Local control message type, tells peer to start
639 * dropping all requests.
641 #define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_DROP 156
644 * Hostlist advertisement message
646 #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
650 * Set a statistical value.
652 #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
655 * Get a statistical value(s).
657 #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
660 * Response to a STATISTICS_GET message (with value).
662 #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
665 * Response to a STATISTICS_GET message (end of value stream).
667 #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
670 * Watch changes to a statistical value. Message format is the same
671 * as for GET, except that the subsystem and entry name must be given.
673 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
676 * Changes to a watched value.
678 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
682 * Type of messages between the gnunet-vpn-helper and the daemon
684 #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
687 * Type of messages containing an UDP packet for a service
689 #define GNUNET_MESSAGE_TYPE_SERVICE_UDP 186
692 * Type of messages containing an UDP packet from a service
694 #define GNUNET_MESSAGE_TYPE_SERVICE_UDP_BACK 187
697 * Type of messages containing an TCP packet for a service
699 #define GNUNET_MESSAGE_TYPE_SERVICE_TCP 188
702 * Type of messages containing an TCP packet from a service
704 #define GNUNET_MESSAGE_TYPE_SERVICE_TCP_BACK 189
707 * Type of messages containing an UDP packet for a remote host
709 #define GNUNET_MESSAGE_TYPE_REMOTE_UDP 190
712 * Type of messages containing an UDP packet from a remote host
714 #define GNUNET_MESSAGE_TYPE_REMOTE_UDP_BACK 191
717 * Type of messages containing an TCP packet for a remote host
719 #define GNUNET_MESSAGE_TYPE_REMOTE_TCP 192
722 * Type of messages containing an TCP packet from a remote host
724 #define GNUNET_MESSAGE_TYPE_REMOTE_TCP_BACK 193
728 * Type of messages between the gnunet-wlan-helper and the daemon
732 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 195
735 * Control messages between the gnunet-wlan-helper and the daemon
738 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 196
741 * Type of messages for advertisement over wlan
743 #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 197
746 * Type of messages for data over the wlan
749 #define GNUNET_MESSAGE_TYPE_WLAN_DATA 198
752 * Fragment of a message
755 #define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT 199
758 * Fragment ack of a message
761 #define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT_ACK 200
765 * Type of messages to query the local service-dns
767 #define GNUNET_MESSAGE_TYPE_LOCAL_QUERY_DNS 205
769 * Type of messages the local service-dns responds with
771 #define GNUNET_MESSAGE_TYPE_LOCAL_RESPONSE_DNS 206
773 * Type of messages to instruct the local service-dns to rehijack the dns
775 #define GNUNET_MESSAGE_TYPE_REHIJACK 207
777 * Type of messages to send a DNS-query to another peer
779 #define GNUNET_MESSAGE_TYPE_REMOTE_QUERY_DNS 208
781 * Type of messages to send a DNS-answer to another peer
783 #define GNUNET_MESSAGE_TYPE_REMOTE_ANSWER_DNS 209
787 * Type of message used to transport messages throug a MESH-tunnel
789 #define GNUNET_MESSAGE_TYPE_MESH 215
792 * Type of message used to send another peer which messages we want to receive
793 * through a mesh-tunnel.
795 #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
798 /*******************************************************************************
799 * MESH message types START (WiP)
800 ******************************************************************************/
803 * Request the creation of a path
805 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256
808 * Request the modification of an existing path
810 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257
813 * Request the addition to a new branch to a path
815 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ADD 258
818 * At some point, the route will spontaneously change
820 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259
823 * Transport data in the mesh (origin->end) unicast
825 #define GNUNET_MESSAGE_TYPE_MESH_UNICAST 260
828 * Transport data to all peers in a tunnel
830 #define GNUNET_MESSAGE_TYPE_MESH_MULTICAST 261
833 * Transport data back in the mesh (end->origin)
834 * (not sure if this is the right way, should be some other solution)
836 #define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN 262
839 * Send origin an ACK that the path is complete
841 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263
844 * We need flow control
846 #define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270
849 * Connect to the mesh service, specifying subscriptions
851 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272
854 * Ask the mesh service to create a new tunnel
856 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE 273
859 * Ask the mesh service to destroy a tunnel
861 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY 274
864 * Ask the mesh service to add a peer to an existing tunnel
866 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_ADD 275
869 * Ask the mesh service to remove a peer from a tunnel
871 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_DEL 276
874 * Ask the mesh service to add a peer offering a service to an existing tunnel
876 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_BY_TYPE 277
879 * Ask the mesh service to cancel a peer connection request
881 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_CANCEL 278
884 * Notify a mesh client that a peer has connected to a tunnel
886 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_CONNECTED 279
889 * Notify a mesh client that a peer has disconnected from a tunnel
891 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DISCONNECTED 280
895 * 640kb should be enough for everybody
897 #define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288
899 /*******************************************************************************
900 * MESH message types END
901 ******************************************************************************/
905 /*******************************************************************************
906 * CHAT message types START
907 ******************************************************************************/
910 * Message sent from client to join a chat room.
912 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
915 * Message sent to client to indicate joining of another room member.
917 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
920 * Message sent to client to indicate leaving of another room member.
922 #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
925 * Notification sent by service to client indicating that we've received a chat
928 #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
931 * Request sent by client to transmit a chat message to another room members.
933 #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
936 * Receipt sent from a message receiver to the service to confirm delivery of
939 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
942 * Notification sent from the service to the original sender
943 * to acknowledge delivery of a chat message.
945 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
948 * P2P message sent to indicate joining of another room member.
950 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
953 * P2P message sent to indicate leaving of another room member.
955 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
958 * P2P message sent to a newly connected peer to request its known clients in
959 * order to synchronize room members.
961 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
964 * Notification sent from one peer to another to indicate that we have received
967 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
970 * P2P receipt confirming delivery of a chat message.
972 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
974 /*******************************************************************************
975 * CHAT message types END
976 ******************************************************************************/
978 /*******************************************************************************
979 * NSE (network size estimation) message types START
980 ******************************************************************************/
983 * client->service message indicating start
985 #define GNUNET_MESSAGE_TYPE_NSE_START 321
988 * P2P message sent from nearest peer
990 #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
993 * service->client message indicating
995 #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
998 * Type used to match 'all' message types.
1000 #define GNUNET_MESSAGE_TYPE_ALL 65535
1004 - applications (FS, VPN, TRACEKIT, TBENCH)
1010 /* BELOW: experimental student-DHT protocol codes */
1013 * Request to join a CAN DHT
1015 #define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REQUEST 1174
1018 * Response to join request of a CAN DHT
1020 #define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REPLY 1175
1023 * Messages for swapping locations
1025 #define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_REQUEST 1180
1027 #define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_RESULT 1181
1029 #define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_REQUEST 1182
1031 #define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_ACK 1183
1034 * Freenet hello message
1036 #define GNUNET_MESSAGE_TYPE_DHT_FREENET_HELLO 1184
1039 #if 0 /* keep Emacsens' auto-indent happy */
1046 /* ifndef GNUNET_PROTOCOLS_H */
1048 /* end of gnunet_protocols.h */