diff options
Diffstat (limited to 'src/include/gnunet_protocols.h')
-rw-r--r-- | src/include/gnunet_protocols.h | 133 |
1 files changed, 105 insertions, 28 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 6b61dfc72..6ab008d16 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
3 | Copyright (C) 2001--2020 GNUnet e.V. | 3 | Copyright (C) 2001--2024 GNUnet e.V. |
4 | 4 | ||
5 | GNUnet is free software: you can redistribute it and/or modify it | 5 | GNUnet is free software: you can redistribute it and/or modify it |
6 | under the terms of the GNU Affero General Public License as published | 6 | under the terms of the GNU Affero General Public License as published |
@@ -19,6 +19,10 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @addtogroup libgnunetutil | ||
23 | * Multi-function utilities library for GNUnet programs | ||
24 | * @{ | ||
25 | * | ||
22 | * @author Christian Grothoff | 26 | * @author Christian Grothoff |
23 | * @author Tobias Frisch | 27 | * @author Tobias Frisch |
24 | * | 28 | * |
@@ -153,10 +157,10 @@ extern "C" { | |||
153 | ******************************************************************************/ | 157 | ******************************************************************************/ |
154 | 158 | ||
155 | /** | 159 | /** |
156 | * Previously used for HELLO messages used for communicating peer addresses. | 160 | * Latest HELLO messages used for communicating peer addresses. |
157 | * Managed by libgnunethello. | 161 | * Managed by libgnunethello. |
158 | */ | 162 | */ |
159 | #define GNUNET_MESSAGE_TYPE_HELLO_LEGACY 16 | 163 | #define GNUNET_MESSAGE_TYPE_HELLO_URI 16 |
160 | 164 | ||
161 | /** | 165 | /** |
162 | * HELLO message with friend only flag used for communicating peer addresses. | 166 | * HELLO message with friend only flag used for communicating peer addresses. |
@@ -660,8 +664,26 @@ extern "C" { | |||
660 | #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156 | 664 | #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_RESULTS_KNOWN 156 |
661 | 665 | ||
662 | /** | 666 | /** |
663 | * Further X-VINE DHT messages continued from 880 | 667 | * HELLO advertising a neighbours addresses. |
668 | */ | ||
669 | #define GNUNET_MESSAGE_TYPE_DHT_P2P_HELLO 157 | ||
670 | |||
671 | /** | ||
672 | * Encapsulation of DHT messages in CORE service. | ||
673 | */ | ||
674 | #define GNUNET_MESSAGE_TYPE_DHT_CORE 158 | ||
675 | |||
676 | /** | ||
677 | * HELLO URL send between client and service (in | ||
678 | * either direction). | ||
679 | */ | ||
680 | #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_HELLO_URL 159 | ||
681 | |||
682 | /** | ||
683 | * Client requests DHT service's HELLO URL. | ||
664 | */ | 684 | */ |
685 | #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_HELLO_GET 161 | ||
686 | |||
665 | 687 | ||
666 | /******************************************************************************* | 688 | /******************************************************************************* |
667 | * HOSTLIST message types | 689 | * HOSTLIST message types |
@@ -1305,7 +1327,7 @@ extern "C" { | |||
1305 | /** | 1327 | /** |
1306 | * Service to client: result of store operation. | 1328 | * Service to client: result of store operation. |
1307 | */ | 1329 | */ |
1308 | #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_STORE_RESPONSE 436 | 1330 | #define GNUNET_MESSAGE_TYPE_NAMESTORE_GENERIC_RESPONSE 436 |
1309 | 1331 | ||
1310 | /** | 1332 | /** |
1311 | * Client to service: lookup label | 1333 | * Client to service: lookup label |
@@ -1791,7 +1813,6 @@ extern "C" { | |||
1791 | #define GNUNET_MESSAGE_TYPE_SETU_P2P_SEND_FULL 710 | 1813 | #define GNUNET_MESSAGE_TYPE_SETU_P2P_SEND_FULL 710 |
1792 | 1814 | ||
1793 | 1815 | ||
1794 | |||
1795 | /******************************************************************************* | 1816 | /******************************************************************************* |
1796 | * SETI message types | 1817 | * SETI message types |
1797 | ******************************************************************************/ | 1818 | ******************************************************************************/ |
@@ -2331,7 +2352,7 @@ extern "C" { | |||
2331 | /** M<->S<->C: PSYC message which contains a header and one or more message | 2352 | /** M<->S<->C: PSYC message which contains a header and one or more message |
2332 | * parts. */ | 2353 | * parts. */ |
2333 | #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_HEADER \ | 2354 | #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_HEADER \ |
2334 | 692 // FIXME: start using this where appropriate | 2355 | 692 // FIXME: start using this where appropriate |
2335 | 2356 | ||
2336 | /** Message part: method */ | 2357 | /** Message part: method */ |
2337 | #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 693 | 2358 | #define GNUNET_MESSAGE_TYPE_PSYC_MESSAGE_METHOD 693 |
@@ -2578,14 +2599,14 @@ extern "C" { | |||
2578 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_STORE 820 | 2599 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_STORE 820 |
2579 | 2600 | ||
2580 | /** | 2601 | /** |
2581 | * Iteration request | 2602 | * Iteration request (see also 828, 829) |
2582 | */ | 2603 | */ |
2583 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE 821 | 2604 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_START 821 |
2584 | 2605 | ||
2585 | /** | 2606 | /** |
2586 | * Iteration record message | 2607 | * Record result message |
2587 | */ | 2608 | */ |
2588 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_RECORD 822 | 2609 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_RECORD 822 |
2589 | 2610 | ||
2590 | /** | 2611 | /** |
2591 | * Iteration end message | 2612 | * Iteration end message |
@@ -2593,19 +2614,34 @@ extern "C" { | |||
2593 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END 823 | 2614 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_END 823 |
2594 | 2615 | ||
2595 | /** | 2616 | /** |
2596 | * Watch request | 2617 | * Monitor request |
2597 | */ | 2618 | */ |
2598 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH 824 | 2619 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_MONITOR_START 824 |
2599 | 2620 | ||
2600 | /** | 2621 | /** |
2601 | * Watch response | 2622 | * Monitor sync |
2602 | */ | 2623 | */ |
2603 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_RECORD 825 | 2624 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_MONITOR_SYNC 825 |
2604 | 2625 | ||
2605 | /** | 2626 | /** |
2606 | * Watch cancel request | 2627 | * Monitor next request |
2607 | */ | 2628 | */ |
2608 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_WATCH_CANCEL 826 | 2629 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_MONITOR_NEXT 826 |
2630 | |||
2631 | /** | ||
2632 | * Store result message | ||
2633 | */ | ||
2634 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_STORE_RESULT 827 | ||
2635 | |||
2636 | /** | ||
2637 | * Iteration request (see also 821, 829) | ||
2638 | */ | ||
2639 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_NEXT 828 | ||
2640 | |||
2641 | /** | ||
2642 | * Iteration request (see also 821, 828) | ||
2643 | */ | ||
2644 | #define GNUNET_MESSAGE_TYPE_PEERSTORE_ITERATE_STOP 829 | ||
2609 | 2645 | ||
2610 | /******************************************************************************* | 2646 | /******************************************************************************* |
2611 | * SOCIAL message types | 2647 | * SOCIAL message types |
@@ -3180,6 +3216,11 @@ extern "C" { | |||
3180 | #define GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE 1064 | 3216 | #define GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE 1064 |
3181 | 3217 | ||
3182 | /** | 3218 | /** |
3219 | * Message to ask NAT service to notify all clients about a new global address. | ||
3220 | */ | ||
3221 | #define GNUNET_MESSAGE_TYPE_NAT_ADD_GLOBAL_ADDRESS 1065 | ||
3222 | |||
3223 | /** | ||
3183 | * Message to ask NAT service to request autoconfiguration. | 3224 | * Message to ask NAT service to request autoconfiguration. |
3184 | */ | 3225 | */ |
3185 | #define GNUNET_MESSAGE_TYPE_NAT_AUTO_REQUEST_CFG 1067 | 3226 | #define GNUNET_MESSAGE_TYPE_NAT_AUTO_REQUEST_CFG 1067 |
@@ -3509,6 +3550,11 @@ extern "C" { | |||
3509 | #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_PAD 1461 | 3550 | #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_PAD 1461 |
3510 | 3551 | ||
3511 | /** | 3552 | /** |
3553 | * UDP Rekey. | ||
3554 | */ | ||
3555 | #define GNUNET_MESSAGE_TYPE_COMMUNICATOR_UDP_REKEY 1462 | ||
3556 | |||
3557 | /** | ||
3512 | * Next available: 1500 | 3558 | * Next available: 1500 |
3513 | */ | 3559 | */ |
3514 | #define GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_DELETE 1500 | 3560 | #define GNUNET_MESSAGE_TYPE_RECLAIM_REFERENCE_DELETE 1500 |
@@ -3528,17 +3574,9 @@ extern "C" { | |||
3528 | 3574 | ||
3529 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_CREATE 1600 | 3575 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_CREATE 1600 |
3530 | 3576 | ||
3531 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_UPDATE 1601 | 3577 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_DESTROY 1601 |
3532 | |||
3533 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_DESTROY 1602 | ||
3534 | |||
3535 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_NAME 1603 | ||
3536 | |||
3537 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_SET_NAME 1604 | ||
3538 | 3578 | ||
3539 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_GET_KEY 1605 | 3579 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_MEMBER_ID 1602 |
3540 | |||
3541 | #define GNUNET_MESSAGE_TYPE_MESSENGER_CONNECTION_MEMBER_ID 1606 | ||
3542 | 3580 | ||
3543 | /************************************ Room *************************************/ | 3581 | /************************************ Room *************************************/ |
3544 | 3582 | ||
@@ -3554,6 +3592,10 @@ extern "C" { | |||
3554 | 3592 | ||
3555 | #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_GET_MESSAGE 1616 | 3593 | #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_GET_MESSAGE 1616 |
3556 | 3594 | ||
3595 | #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_SYNC 1617 | ||
3596 | |||
3597 | #define GNUNET_MESSAGE_TYPE_MESSENGER_ROOM_LINK 1618 | ||
3598 | |||
3557 | /*********************************************************************************/ | 3599 | /*********************************************************************************/ |
3558 | 3600 | ||
3559 | /*********************************************************************************/ | 3601 | /*********************************************************************************/ |
@@ -3574,10 +3616,43 @@ extern "C" { | |||
3574 | 3616 | ||
3575 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED 1703 | 3617 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED 1703 |
3576 | 3618 | ||
3577 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_FINISHED 1704 | 3619 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TEST_PREPARED 1704 |
3620 | |||
3621 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_LOCAL_TESTS_PREPARED 1705 | ||
3622 | |||
3623 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_FINISHED 1706 | ||
3624 | |||
3625 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_BARRIER_REACHED 1707 | ||
3626 | |||
3627 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_BARRIER_ATTACH 1708 | ||
3628 | |||
3629 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_BARRIER_CROSSABLE 1709 | ||
3630 | |||
3631 | #define GNUNET_MESSAGE_TYPE_CMDS_HELPER_BARRIER_ATTACHED 1710 | ||
3578 | 3632 | ||
3579 | /*********************************************************************************/ | 3633 | /*********************************************************************************/ |
3580 | 3634 | ||
3635 | /*********************************************************************************/ | ||
3636 | /********************************** NAMESTORE (cont.) **************************/ | ||
3637 | /*********************************************************************************/ | ||
3638 | /* NAMESTORE: message types 1750-1800 | ||
3639 | */ | ||
3640 | |||
3641 | /** | ||
3642 | * Message type for start of record edit with advisory lock | ||
3643 | */ | ||
3644 | #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_SET_EDIT 1750 | ||
3645 | |||
3646 | /** | ||
3647 | * Return record set to edit with previous editor hint/advisory lock | ||
3648 | */ | ||
3649 | #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_SET_EDIT_RESPONSE 1751 | ||
3650 | |||
3651 | /** | ||
3652 | * Message type for cancellation/reset of editor hint/advisory lock | ||
3653 | */ | ||
3654 | #define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_SET_EDIT_CANCEL 1752 | ||
3655 | |||
3581 | /** | 3656 | /** |
3582 | * Type used to match 'all' message types. | 3657 | * Type used to match 'all' message types. |
3583 | */ | 3658 | */ |
@@ -3596,4 +3671,6 @@ extern "C" { | |||
3596 | 3671 | ||
3597 | /** @} */ /* end of group protocols */ | 3672 | /** @} */ /* end of group protocols */ |
3598 | 3673 | ||
3674 | /** @} */ /* end of group addition */ | ||
3675 | |||
3599 | /* end of gnunet_protocols.h */ | 3676 | /* end of gnunet_protocols.h */ |