/*
This file is part of GNUnet.
- (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Christian Grothoff (and other contributing authors)
+ (C) 2001-2013 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
- by the Free Software Foundation; either version 2, or (at your
+ by the Free Software Foundation; either version 3, or (at your
option) any later version.
GNUnet is distributed in the hope that it will be useful, but
* @file include/gnunet_protocols.h
* @brief constants for network protocols
* @author Christian Grothoff
+ * @defgroup protocols Types of messages used in GNUnet
+ * @{
*/
/*******************************************************************************
* TODO: we need a way to register message types centrally (via some webpage).
* For now: unofficial extensions should start at 48k, internal extensions
- * define here should leave some room (4-10 additional messages to the previous
+ * defined here should leave some room (4-10 additional messages to the previous
* extension).
******************************************************************************/
******************************************************************************/
/**
- * Type of data messages from the plugin to the gnunet-wlan-helper
+ * Type of data messages from the plugin to the gnunet-wlan-helper
*/
#define GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER 39
*/
#define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
-/**
- * Check whether a given peer is currently connected to CORE.
- */
-#define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
-
/**
* Encapsulation for an encrypted message between peers.
*/
#define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
/**
- * Request the creation of a connection
+ * Request the creation of a connection DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256
#define GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE 256
/**
- * Send origin an ACK that the connection is complete
+ * Send origin an ACK that the connection is complete DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 257
#define GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK 257
/**
- * Notify that a connection is no longer valid
+ * Notify that a connection is no longer valid DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN 258
#define GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN 258
#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259
/**
- * Payload data origin->end.
+ * Payload data.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_DATA 260
+
+/**
+ * Confirm payload data end-to-end.
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_DATA_ACK 261
+
+/**
+ * Payload data origin->end DEPRECATED.
*/
#define GNUNET_MESSAGE_TYPE_MESH_UNICAST 260
/**
- * Payload data end->origin.
+ * Payload data end->origin DEPRECATED.
*/
#define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN 262
/**
- * Confirm owner->dest data end-to-end (ack goes dest->owner).
+ * Confirm owner->dest data end-to-end (ack goes dest->owner). DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK 263
/**
- * Confirm dest->owner data end-to-end (ack goes owner->dest).
+ * Confirm dest->owner data end-to-end (ack goes owner->dest). DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_TO_ORIG_ACK 264
/**
- * Request the destuction of a path
+ * Request the destuction of a path (PATH DEPRECATED)
*/
#define GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY 266
#define GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY 266
/**
- * Request the destruction of a whole tunnel
+ * Request the destruction of a whole tunnel
*/
#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY 267
/**
- * ACK for a data packet.
+ * Hop-by-hop, connection dependent ACK.
*/
#define GNUNET_MESSAGE_TYPE_MESH_ACK 268
/**
- * Poll for an ACK.
+ * Poll for a hop-by-hop ACK.
*/
#define GNUNET_MESSAGE_TYPE_MESH_POLL 269
* Announce origin is still alive.
*/
#define GNUNET_MESSAGE_TYPE_MESH_FWD_KEEPALIVE 270
+#define GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE 270
/**
- * Announce destination is still alive.
+ * Announce destination is still alive. DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_BCK_KEEPALIVE 271
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272
/**
- * Ask the mesh service to create a new tunnel
+ * Ask the mesh service to create a new tunnel DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_CHANNEL_CREATE 273
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE 273
/**
- * Ask the mesh service to destroy a tunnel
+ * Ask the mesh service to destroy a tunnel DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY 274
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY 274
/**
- * Encrypted data going forward.
+ * Confirm the creation of a channel
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_CHANNEL_ACK 275
+
+/**
+ * Encrypted data going forward. DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_FWD 280
+/**
+ * Encrypted data. (Payload, channel management, keepalive)
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED 280
+
/**
* Encrypted data going backwards.
*/
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK 286
/**
- * Local information about all tunnels of service.
+ * Local information about all tunnels of service. DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS 287
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNELS 287
/**
- * Local information of service about a specific tunnel.
+ * Local information of service about a specific tunnel. DEPRECATED
*/
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL 288
#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CHANNEL 288
*/
#define GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE 355
+/**
+ * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
+ * to ask for allocation preference changes.
+ */
+#define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_FEEDBACK 356
/*******************************************************************************
/*******************************************************************************
- * NAMESTORE message types
+ * NAMECACHE message types
******************************************************************************/
/**
* Client to service: lookup block
*/
#define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK 431
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK 431
/**
* Service to client: result of block lookup
*/
#define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_BLOCK_RESPONSE 432
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_LOOKUP_BLOCK_RESPONSE 432
/**
- * Client to service: store records (as authority)
+ * Client to service: cache a block
*/
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 433
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE 433
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE 433
/**
- * Service to client: result of store operation.
+ * Service to client: result of block cache request
*/
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 434
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE 434
+#define GNUNET_MESSAGE_TYPE_NAMECACHE_BLOCK_CACHE_RESPONSE 434
+
+/*******************************************************************************
+ * NAMESTORE message types
+ ******************************************************************************/
/**
- * Client to service: cache a block
+ * Client to service: store records (as authority)
*/
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE 435
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE 435
/**
- * Service to client: result of block cache request
+ * Service to client: result of store operation.
*/
-#define GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE 436
+#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 436
/**
* Client to service: "reverse" lookup for zone name based on zone key
#define GNUNET_MESSAGE_TYPE_TESTBED_GENERIC_OPERATION_SUCCESS 475
/**
- * Message to get the configuration of a peer
+ * Message to get a peer's information
*/
-#define GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_CONFIGURATION 476
+#define GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_INFORMATION 476
/**
- * Message containing the peer configuration
+ * Message containing the peer's information
*/
-#define GNUNET_MESSAGE_TYPE_TESTBED_PEER_CONFIGURATION 477
+#define GNUNET_MESSAGE_TYPE_TESTBED_PEER_INFORMATION 477
/**
* Message to request a controller to make one of its peer to connect to another
*/
#define GNUNET_MESSAGE_TYPE_TESTBED_MANAGE_PEER_SERVICE 483
+/**
+ * Message to initialise a barrier. Messages of these type are flooded to all
+ * sub-controllers
+ */
+#define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_INIT 484
+
+/**
+ * Message to cancel a barrier. This message is flooded to all sub-controllers
+ */
+#define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_CANCEL 485
+
+/**
+ * Message for signalling status of a barrier
+ */
+#define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS 486
+
+/**
+ * Message sent by a peer when it has reached a barrier and is waiting for it to
+ * be crossed
+ */
+#define GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_WAIT 487
+
/**
* Not really a message, but for careful checks on the testbed messages; Should
* always be the maximum and never be used to send messages with this type
*/
-#define GNUNET_MESSAGE_TYPE_TESTBED_MAX 484
+#define GNUNET_MESSAGE_TYPE_TESTBED_MAX 488
/**
* The initialization message towards gnunet-testbed-helper
/******************************************************************************
- * GNS. FIXME: document!
+ * GNS.
*****************************************************************************/
+
+/**
+ * Client would like to resolve a name.
+ */
#define GNUNET_MESSAGE_TYPE_GNS_LOOKUP 500
+/**
+ * Service response to name resolution request from client.
+ */
#define GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT 501
-#define GNUNET_MESSAGE_TYPE_GNS_SHORTEN 502
-
-#define GNUNET_MESSAGE_TYPE_GNS_SHORTEN_RESULT 503
-
-#define GNUNET_MESSAGE_TYPE_GNS_GET_AUTH 504
-
-#define GNUNET_MESSAGE_TYPE_GNS_GET_AUTH_RESULT 505
-
/*******************************************************************************
* CONSENSUS message types
*/
#define GNUNET_MESSAGE_TYPE_SET_ITER_DONE 589
-/**
- * Iteration end marker for the client.
- */
-#define GNUNET_MESSAGE_TYPE_SET_P2P_DIE 590
-
-
/*******************************************************************************
* TESTBED LOGGER message types
/**
* Result in response to regex search.
- */
+ */
#define GNUNET_MESSAGE_TYPE_REGEX_RESULT 622
/*******************************************************************************
#define GNUNET_MESSAGE_TYPE_IDENTITY_DELETE 631
+/*******************************************************************************
+ * REVOCATION message types
+ ******************************************************************************/
+
+/**
+ * Client to service: was this key revoked?
+ */
+#define GNUNET_MESSAGE_TYPE_REVOCATION_QUERY 636
+
/**
- * Next available: 640
+ * Service to client: answer if key was revoked!
*/
+#define GNUNET_MESSAGE_TYPE_REVOCATION_QUERY_RESPONSE 637
+/**
+ * Client to service OR peer-to-peer: revoke this key!
+ */
+#define GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE 638
+
+/**
+ * Service to client: revocation confirmed
+ */
+#define GNUNET_MESSAGE_TYPE_REVOCATION_REVOKE_RESPONSE 639
+
+
+/*******************************************************************************
+ * SCALARPRODUCT message types
+ ******************************************************************************/
+
+/**
+ * Client -> Vector-Product Service request message
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_ALICE 640
+
+/**
+ * Client -> Vector-Product Service request message
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_CLIENT_TO_BOB 641
+
+/**
+ * Vector-Product Service request -> remote VP Service
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_TO_BOB 642
+
+/**
+ * Vector-Product Service request -> remote VP Service Multipart
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_ALICE_TO_BOB_MULTIPART 643
+
+/**
+ * remote Vector-Product Service response -> requesting VP Service
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_TO_ALICE 644
+
+/**
+ * remote Vector-Product Service response -> requesting VP Service Multipart
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_BOB_TO_ALICE_MULTIPART 645
+
+/**
+ * Vector-Product Service response -> Client
+ */
+#define GNUNET_MESSAGE_TYPE_SCALARPRODUCT_SERVICE_TO_CLIENT 646
+
+
+/*******************************************************************************
+ * PSYCSTORE message types
+ ******************************************************************************/
+
+/**
+ * Store a membership event.
+ */
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_STORE 650
+
+/**
+ * Test for membership of a member at a particular point in time.
+ */
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_MEMBERSHIP_TEST 651
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_STORE 652
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_FRAGMENT_GET 653
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET 654
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_MESSAGE_GET_FRAGMENT 655
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_COUNTERS_GET 656
+
+/* 657 */
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_MODIFY 658
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_SYNC 659
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_RESET 660
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_HASH_UPDATE 661
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET 662
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_STATE_GET_PREFIX 663
+
+/**
+ * Generic response from PSYCstore service with success and/or error message.
+ */
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE 664
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_FRAGMENT 665
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_COUNTERS 666
+
+#define GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_STATE 667
+
+
+/*******************************************************************************
+ * PSYC message types
+ ******************************************************************************/
+
+#define GNUNET_MESSAGE_TYPE_PSYC_RESULT_CODE 680
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MASTER_START 681
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MASTER_START_ACK 682
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MASTER_STOP 683
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN 684
+
+#define GNUNET_MESSAGE_TYPE_PSYC_SLAVE_JOIN_ACK 685
+
+#define GNUNET_MESSAGE_TYPE_PSYC_SLAVE_PART 686
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_JOIN_REQUEST 687
+
+#define GNUNET_MESSAGE_TYPE_PSYC_JOIN_DECISION 688
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_SLAVE_ADD 689
+
+#define GNUNET_MESSAGE_TYPE_PSYC_CHANNEL_SLAVE_RM 690
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 691
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MODIFIER 692
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_MOD_CONT 693
+
+#define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_DATA 694
+
+#define GNUNET_MESSAGE_TYPE_PSYC_TRANSMIT_ACK 695
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STORY_REQUEST 701
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STORY_RESPONSE 702
+
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET 703
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_GET_PREFIX 704
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_RESPONSE 705
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MODIFIER 706
+
+#define GNUNET_MESSAGE_TYPE_PSYC_STATE_MOD_CONT 707
+
+
+/*******************************************************************************
+ * CONVERSATION message types
+ ******************************************************************************/
+
+/**
+ * Message to transmit the audio between helper and speaker/microphone library.
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO 730
+
+/**
+ * Client -> Server message register a phone.
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_REGISTER 730
+
+/**
+ * Client -> Server meessage to reject/hangup a call
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICK_UP 731
+
+/**
+ * Client -> Server meessage to reject/hangup a call
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_HANG_UP 732
+
+/**
+ * Client <- Server message to indicate a ringing phone
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_CALL 733
+
+/**
+ * Client <- Server message to indicate a ringing phone
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RING 734
+
+/**
+ * Client <-> Server message to send audio data.
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_BUSY 735
+
+/**
+ * Client <-> Server message to send audio data.
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_PICKED_UP 736
+
+/**
+ * Client <-> Server message to send audio data.
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_CS_AUDIO 737
+
+/**
+ * Mesh: call initiation
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_RING 738
+
+/**
+ * Mesh: hang up / refuse call
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_HANG_UP 739
+
+/**
+ * Mesh: pick up phone (establish audio channel)
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_PICK_UP 740
+
+/**
+ * Mesh: phone is busy (refuse nicely)
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_BUSY 741
+
+/**
+ * Mesh: audio data
+ */
+#define GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_AUDIO 742
-/* WIP: no numbers assigned yet */
/*******************************************************************************
* MULTICAST message types
******************************************************************************/
+
+/* WIP: no numbers assigned yet */
+
/**
* Multicast message from the origin to all members.
*/
-#define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE
+#define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 750
/**
* A unicast message from a group member to the origin.
*/
#define GNUNET_MESSAGE_TYPE_MULTICAST_GROUP_END
+/**
+ *
+ */
+#define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST
+
+/**
+ *
+ */
+#define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST_CANCEL
+
+
+/**
+ * Next available: 780
+ */
+
/*******************************************************************************
* PSYC message types
}
#endif
+/** @} */ /* end of group protocols */
+
/* ifndef GNUNET_PROTOCOLS_H */
#endif
/* end of gnunet_protocols.h */