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
48 * Dummy messages for testing / benchmarking.
50 #define GNUNET_MESSAGE_TYPE_DUMMY 2
52 /*******************************************************************************
53 * RESOLVER message types
54 ******************************************************************************/
57 * Request DNS resolution.
59 #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 4
62 * Response to a DNS resolution request.
64 #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5
66 /*******************************************************************************
68 ******************************************************************************/
71 * Request to ARM to start a service.
73 #define GNUNET_MESSAGE_TYPE_ARM_START 8
76 * Request to ARM to stop a service.
78 #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
81 * Request ARM service itself to shutdown.
83 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 10
88 #define GNUNET_MESSAGE_TYPE_ARM_RESULT 11
91 * Request to ARM to list all currently running services
93 #define GNUNET_MESSAGE_TYPE_ARM_LIST 12
96 * Response from ARM for listing currently running services
98 #define GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT 13
100 /*******************************************************************************
101 * HELLO message types
102 ******************************************************************************/
105 * HELLO message used for communicating peer addresses.
106 * Managed by libgnunethello.
108 #define GNUNET_MESSAGE_TYPE_HELLO 16
110 /*******************************************************************************
111 * FRAGMENTATION message types
112 ******************************************************************************/
115 * FRAGMENT of a larger message.
116 * Managed by libgnunetfragment.
118 #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
121 * Acknowledgement of a FRAGMENT of a larger message.
122 * Managed by libgnunetfragment.
124 #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
126 /*******************************************************************************
127 * Transport-WLAN message types
128 ******************************************************************************/
131 * Type of messages between the gnunet-wlan-helper and the daemon
134 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 40
137 * Control messages between the gnunet-wlan-helper and the daemon
140 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41
143 * Type of messages for advertisement over wlan
145 #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42
148 * Type of messages for data over the wlan
150 #define GNUNET_MESSAGE_TYPE_WLAN_DATA 43
153 /*******************************************************************************
154 * Transport-DV message types
155 ******************************************************************************/
158 * DV service to DV Plugin message, when a message is
159 * unwrapped by the DV service and handed to the plugin
162 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECEIVE 44
165 * DV Plugin to DV service message, indicating a message
166 * should be sent out.
168 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
171 * DV service to DV api message, containing a confirmation
172 * or failure of a DV_SEND message.
174 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
177 * P2P DV message encapsulating some real message
179 #define GNUNET_MESSAGE_TYPE_DV_DATA 47
182 * P2P DV message gossipping peer information
184 #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
187 * DV Plugin to DV service message, indicating
190 #define GNUNET_MESSAGE_TYPE_DV_START 49
193 * P2P DV message notifying connected peers of a disconnect
195 #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
197 /*******************************************************************************
198 * Transport-UDP message types
199 ******************************************************************************/
202 * Normal UDP message type.
204 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 56
209 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57
211 /*******************************************************************************
212 * Transport-TCP message types
213 ******************************************************************************/
216 * TCP NAT probe message, send from NAT'd peer to
217 * other peer to establish bi-directional communication
219 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60
222 * Welcome message between TCP transports.
224 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
227 * Message to force transport to update bandwidth assignment (LEGACY)
229 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
231 /*******************************************************************************
233 ******************************************************************************/
236 * Message to ask NAT server to perform traversal test
238 #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
240 /*******************************************************************************
242 ******************************************************************************/
245 * Initial setup message from core client to core.
247 #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
250 * Response from core to core client to INIT message.
252 #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
255 * Notify clients about new peer-to-peer connections (before
256 * key exchange and authentication).
258 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66
261 * Notify clients about new peer-to-peer connections (triggered
262 * after key exchange).
264 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
267 * Notify clients about peer disconnecting.
269 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
272 * Notify clients about peer status change.
274 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
277 * Notify clients about incoming P2P messages.
279 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
282 * Notify clients about outgoing P2P transmissions.
284 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
287 * Request from client to transmit message.
289 #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
292 * Confirmation from core that message can now be sent
294 #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
297 * Client with message to transmit (after SEND_READY confirmation
300 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
304 * Request for peer iteration from CORE service.
306 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS 78
309 * Last reply from core to request for peer iteration from CORE service.
311 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
314 * Check whether a given peer is currently connected to CORE.
316 #define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
319 * Session key exchange between peers.
321 #define GNUNET_MESSAGE_TYPE_CORE_SET_KEY 81
324 * Encapsulation for an encrypted message between peers.
326 #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
329 * Check that other peer is alive (challenge).
331 #define GNUNET_MESSAGE_TYPE_CORE_PING 83
334 * Confirmation that other peer is alive.
336 #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
339 * Request by the other peer to terminate the connection.
341 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
344 * gzip-compressed type map of the sender
346 #define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86
349 * uncompressed type map of the sender
351 #define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
353 /*******************************************************************************
354 * DATASTORE message types
355 ******************************************************************************/
358 * Message sent by datastore client on join.
360 #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
363 * Message sent by datastore client on join.
365 #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
368 * Message sent by datastore to client informing about status
369 * processing a request
370 * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
372 #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
375 * Message sent by datastore client to store data.
377 #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
380 * Message sent by datastore client to update data.
382 #define GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE 96
385 * Message sent by datastore client to get data.
387 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
390 * Message sent by datastore client to get random data.
392 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
395 * Message sent by datastore client to get random data.
397 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
400 * Message sent by datastore to client providing requested data
401 * (in response to GET or GET_RANDOM request).
403 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
406 * Message sent by datastore to client signaling end of matching data.
407 * This message will also be sent for "GET_RANDOM", even though
408 * "GET_RANDOM" returns at most one data item.
410 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
413 * Message sent by datastore client to remove data.
415 #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
418 * Message sent by datastore client to drop the database.
420 #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
423 /*******************************************************************************
425 ******************************************************************************/
428 * Message sent by fs client to start indexing.
430 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
433 * Affirmative response to a request for start indexing.
435 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
438 * Response to a request for start indexing that
441 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
444 * Request from client for list of indexed files.
446 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
449 * Reply to client with an indexed file name.
451 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
454 * Reply to client indicating end of list.
456 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
459 * Request from client to unindex a file.
461 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
464 * Reply to client indicating unindex receipt.
466 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
469 * Client asks FS service to start a (keyword) search.
471 #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
474 * P2P request for content (one FS to another).
476 #define GNUNET_MESSAGE_TYPE_FS_GET 137
479 * P2P response with content or active migration of content. Also
480 * used between the service and clients (in response to START_SEARCH).
482 #define GNUNET_MESSAGE_TYPE_FS_PUT 138
485 * Peer asks us to stop migrating content towards it for a while.
487 #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
490 /*******************************************************************************
492 ******************************************************************************/
495 * Client wants to store item in DHT.
497 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 142
500 * Client wants to lookup item in DHT.
502 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 143
505 * Client wants to stop search in DHT.
507 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 144
510 * Service returns result to client.
512 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 145
515 * Peer is storing data in DHT.
517 #define GNUNET_MESSAGE_TYPE_DHT_P2P_PUT 146
520 * Peer tries to find data in DHT.
522 #define GNUNET_MESSAGE_TYPE_DHT_P2P_GET 147
525 * Data is returned to peer from DHT.
527 #define GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 148
530 * Request / receive information about transiting GETs
532 #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET 149
535 * Request / receive information about transiting GET responses
537 #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP 150
540 * Request / receive information about transiting PUTs
542 #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT 151
545 * Request / receive information about transiting PUT responses (TODO)
547 #define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT_RESP 152
550 /*******************************************************************************
551 * HOSTLIST message types
552 ******************************************************************************/
555 * Hostlist advertisement message
557 #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
560 /*******************************************************************************
561 * STATISTICS message types
562 ******************************************************************************/
565 * Set a statistical value.
567 #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
570 * Get a statistical value(s).
572 #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
575 * Response to a STATISTICS_GET message (with value).
577 #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
580 * Response to a STATISTICS_GET message (end of value stream).
582 #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
585 * Watch changes to a statistical value. Message format is the same
586 * as for GET, except that the subsystem and entry name must be given.
588 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
591 * Changes to a watched value.
593 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
596 /*******************************************************************************
598 ******************************************************************************/
601 * Type of messages between the gnunet-vpn-helper and the daemon
603 #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
606 * Type of messages containing an ICMP packet for a service.
608 #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE 190
611 * Type of messages containing an ICMP packet for the Internet.
613 #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET 191
616 * Type of messages containing an ICMP packet for the VPN
618 #define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN 192
621 * Type of messages containing an DNS request for a DNS exit service.
623 #define GNUNET_MESSAGE_TYPE_VPN_DNS_TO_INTERNET 193
626 * Type of messages containing an DNS reply from a DNS exit service.
628 #define GNUNET_MESSAGE_TYPE_VPN_DNS_FROM_INTERNET 194
631 * Type of messages containing an TCP packet for a service.
633 #define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START 195
636 * Type of messages containing an TCP packet for the Internet.
638 #define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START 196
641 * Type of messages containing an TCP packet of an established connection.
643 #define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_EXIT 197
646 * Type of messages containing an TCP packet of an established connection.
648 #define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_VPN 198
651 * Type of messages containing an UDP packet for a service.
653 #define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE 199
656 * Type of messages containing an UDP packet for the Internet.
658 #define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET 200
661 * Type of messages containing an UDP packet from a remote host
663 #define GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY 201
667 * Client asks VPN service to setup an IP to redirect traffic
668 * via an exit node to some global IP address.
670 #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP 202
673 * Client asks VPN service to setup an IP to redirect traffic
674 * to some peer offering a service.
676 #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_SERVICE 203
679 * VPN service responds to client with an IP to use for the
680 * requested redirection.
682 #define GNUNET_MESSAGE_TYPE_VPN_CLIENT_USE_IP 204
685 /*******************************************************************************
686 * VPN-DNS message types
687 ******************************************************************************/
691 * Initial message from client to DNS service for registration.
693 #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT 211
696 * Type of messages between the gnunet-helper-dns and the service
698 #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST 212
701 * Type of messages between the gnunet-helper-dns and the service
703 #define GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE 213
706 * Type of messages between the gnunet-helper-dns and the service
708 #define GNUNET_MESSAGE_TYPE_DNS_HELPER 214
711 /*******************************************************************************
713 ******************************************************************************/
716 * Type of message used to transport messages throug a MESH-tunnel (LEGACY)
718 #define GNUNET_MESSAGE_TYPE_MESH 215
721 * Type of message used to send another peer which messages we want to receive
722 * through a mesh-tunnel (LEGACY)
724 #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
727 * Request the creation of a path
729 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256
732 * Request the modification of an existing path
734 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257
737 * Notify that a connection of a path is no longer valid
739 #define GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN 258
742 * At some point, the route will spontaneously change
744 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259
747 * Transport data in the mesh (origin->end) unicast
749 #define GNUNET_MESSAGE_TYPE_MESH_UNICAST 260
752 * Transport data to all peers in a tunnel
754 #define GNUNET_MESSAGE_TYPE_MESH_MULTICAST 261
757 * Transport data back in the mesh (end->origin)
759 #define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN 262
762 * Send origin an ACK that the path is complete
764 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263
767 * Avoid path timeouts
769 #define GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE 264
772 * Request the destuction of a path
774 #define GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY 265
777 * Request the destruction of a whole tunnel
779 #define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY 266
782 * We need flow control
784 #define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270
787 * Connect to the mesh service, specifying subscriptions
789 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272
792 * Ask the mesh service to create a new tunnel
794 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE 273
797 * Ask the mesh service to destroy a tunnel
799 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY 274
802 * Ask the mesh service to add a peer to an existing tunnel
804 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD 275
807 * Ask the mesh service to remove a peer from a tunnel
809 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL 276
812 * Ask the mesh service to add a peer offering a service to an existing tunnel
814 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE 277
817 * 640kb should be enough for everybody
819 #define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288
823 /*******************************************************************************
824 * CHAT message types START
825 ******************************************************************************/
828 * Message sent from client to join a chat room.
830 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
833 * Message sent to client to indicate joining of another room member.
835 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
838 * Message sent to client to indicate leaving of another room member.
840 #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
843 * Notification sent by service to client indicating that we've received a chat
846 #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
849 * Request sent by client to transmit a chat message to another room members.
851 #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
854 * Receipt sent from a message receiver to the service to confirm delivery of
857 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
860 * Notification sent from the service to the original sender
861 * to acknowledge delivery of a chat message.
863 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
866 * P2P message sent to indicate joining of another room member.
868 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
871 * P2P message sent to indicate leaving of another room member.
873 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
876 * P2P message sent to a newly connected peer to request its known clients in
877 * order to synchronize room members.
879 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
882 * Notification sent from one peer to another to indicate that we have received
885 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
888 * P2P receipt confirming delivery of a chat message.
890 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
893 /*******************************************************************************
894 * NSE (network size estimation) message types
895 ******************************************************************************/
898 * client->service message indicating start
900 #define GNUNET_MESSAGE_TYPE_NSE_START 321
903 * P2P message sent from nearest peer
905 #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
908 * service->client message indicating
910 #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
913 /*******************************************************************************
914 * PEERINFO message types
915 ******************************************************************************/
918 * Request update and listing of a peer.
920 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330
923 * Request update and listing of all peers.
925 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331
928 * Information about one of the peers.
930 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332
933 * End of information about other peers.
935 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333
938 * Start notifying this client about all changes to
939 * the known peers until it disconnects.
941 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334
943 /*******************************************************************************
945 ******************************************************************************/
948 * Type of the 'struct ClientStartMessage' sent by clients to ATS to
949 * identify the type of the client.
951 #define GNUNET_MESSAGE_TYPE_ATS_START 340
954 * Type of the 'struct RequestAddressMessage' sent by clients to ATS
955 * to request an address to help connect.
957 #define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341
960 * Type of the 'struct RequestAddressMessage' sent by clients to ATS
961 * to request an address to help connect.
963 #define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL 342
966 * Type of the 'struct AddressUpdateMessage' sent by clients to ATS
967 * to inform ATS about performance changes.
969 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 343
972 * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS
973 * to inform ATS about an address being unavailable.
975 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 344
978 * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients
979 * to suggest switching to a different address.
981 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 345
984 * Type of the 'struct PeerInformationMessage' sent by ATS to clients
985 * to inform about QoS for a particular connection.
987 #define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 346
990 * Type of the 'struct ReservationRequestMessage' sent by clients to ATS
991 * to ask for inbound bandwidth reservations.
993 #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 347
996 * Type of the 'struct ReservationResultMessage' sent by ATS to clients
997 * in response to a reservation request.
999 #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 348
1002 * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
1003 * to ask for allocation preference changes.
1005 #define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 349
1008 * Type of the 'struct SessionReleaseMessage' sent by ATS to client
1009 * to confirm that a session ID was destroyed.
1011 #define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350
1014 * Type of the 'struct AddressUseMessage' sent by ATS to client
1015 * to confirm that an address is used or not used anymore
1017 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 351
1022 /*******************************************************************************
1023 * TRANSPORT message types
1024 ******************************************************************************/
1027 * Message from the core saying that the transport
1028 * server should start giving it messages. This
1029 * should automatically trigger the transmission of
1032 #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 360
1035 * Message from TRANSPORT notifying about a
1036 * client that connected to us.
1038 #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 361
1041 * Message from TRANSPORT notifying about a
1042 * client that disconnected from us.
1044 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 362
1047 * Request to TRANSPORT to transmit a message.
1049 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 363
1052 * Confirmation from TRANSPORT that message for transmission has been
1053 * queued (and that the next message to this peer can now be passed to
1054 * the service). Note that this confirmation does NOT imply that the
1055 * message was fully transmitted.
1057 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 364
1060 * Message from TRANSPORT notifying about a
1061 * message that was received.
1063 #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 365
1066 * Message telling transport to limit its receive rate.
1068 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 366
1071 * Request to look addresses of peers in server.
1073 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING 367
1076 * Response to the address lookup request.
1078 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY 368
1081 * Register a client that wants to do blacklisting.
1083 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 369
1086 * Query to a blacklisting client (is this peer blacklisted)?
1088 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 370
1091 * Reply from blacklisting client (answer to blacklist query).
1093 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 371
1096 * Transport PING message
1098 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 372
1101 * Transport PONG message
1103 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 373
1106 * Message for transport service from a client asking that a
1107 * connection be initiated with another peer.
1109 #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 374
1112 * Transport CONNECT message exchanged between transport services to
1113 * indicate that a session should be marked as 'connected'.
1115 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 375
1118 * Transport CONNECT_ACK message exchanged between transport services to
1119 * indicate that a CONNECT message was accepted
1121 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT_ACK 376
1124 * Transport CONNECT_ACK message exchanged between transport services to
1125 * indicate that a CONNECT message was accepted
1127 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK 377
1130 * Transport DISCONNECT message exchanged between transport services to
1131 * indicate that a connection should be dropped.
1133 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 378
1136 * Request to monitor addresses used by a peer or all peers.
1138 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 380
1141 * Message send by a peer to notify the other to keep the session alive
1142 * and measure latency in a regular interval
1144 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 381
1147 * Response to a GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE message to
1148 * measure latency in a regular interval
1150 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE_RESPONSE 382
1154 * Request to iterate over all known addresses.
1156 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE_RESPONSE 383
1159 * Message send by a peer to notify the other to keep the session alive.
1161 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON 384
1163 /*******************************************************************************
1164 * STREAM LIRBRARY MESSAGES
1165 ******************************************************************************/
1168 * Message containing data exchanged between stream end-points over mesh.
1170 #define GNUNET_MESSAGE_TYPE_STREAM_DATA 400
1175 #define GNUNET_MESSAGE_TYPE_STREAM_ACK 401
1178 * Handshake hello message
1180 #define GNUNET_MESSAGE_TYPE_STREAM_HELLO 402
1183 * Handshake hello acknowledgement message
1185 #define GNUNET_MESSAGE_TYPE_STREAM_HELLO_ACK 403
1190 #define GNUNET_MESSAGE_TYPE_STREAM_RESET 404
1193 * Transmit close message (data transmission no longer possible after this
1196 #define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE 405
1199 * Transmit close acknowledgement message
1201 #define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE_ACK 406
1204 * Receive close message (data is no loger read by the receiver after this
1207 #define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE 407
1210 * Receive close acknowledgement message
1212 #define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE_ACK 408
1215 * Stream close message (data is no longer sent or read after this message)
1217 #define GNUNET_MESSAGE_TYPE_STREAM_CLOSE 409
1220 * Close acknowledgement message
1222 #define GNUNET_MESSAGE_TYPE_STREAM_CLOSE_ACK 410
1224 /*******************************************************************************
1225 * FS-PUBLISH-HELPER IPC Messages
1226 ******************************************************************************/
1229 * Progress information from the helper: found a file
1231 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_FILE 420
1234 * Progress information from the helper: found a directory
1236 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY 421
1239 * Error signal from the helper.
1241 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR 422
1244 * Signal that helper skipped a file.
1246 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_SKIP_FILE 423
1249 * Signal that helper is done scanning the directory tree.
1251 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE 424
1254 * Extracted meta data from the helper.
1256 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA 425
1259 * Signal that helper is done.
1261 #define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED 426
1263 /*******************************************************************************
1264 * NAMESTORE message types
1265 ******************************************************************************/
1268 * Request update and listing of a peer.
1270 #define GNUNET_MESSAGE_TYPE_NAMESTORE_START 430
1273 * Next available: 440
1276 /*******************************************************************************
1277 * TODO: we need a way to register message types centrally (via some webpage).
1278 * For now: unofficial extensions should start at 48k, internal extensions
1279 * define here should leave some room (4-10 additional messages to the previous
1281 ******************************************************************************/
1284 * Type used to match 'all' message types.
1286 #define GNUNET_MESSAGE_TYPE_ALL 65535
1289 #if 0 /* keep Emacsens' auto-indent happy */
1296 /* ifndef GNUNET_PROTOCOLS_H */
1298 /* end of gnunet_protocols.h */