gnunet_applications.h (3152B)
1 /* 2 This file is part of GNUnet. 3 Copyright (C) 2011, 2016 GNUnet e.V. 4 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 7 by the Free Software Foundation, either version 3 of the License, 8 or (at your option) any later version. 9 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 Affero General Public License for more details. 14 15 You should have received a copy of the GNU Affero General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 SPDX-License-Identifier: AGPL3.0-or-later 19 */ 20 21 /** 22 * @addtogroup Backbone 23 * @{ 24 * 25 * @author Christian Grothoff 26 * 27 * @file 28 * Constants for network applications operating on top of the CADET service 29 * 30 * @defgroup applications CADET application definitions 31 * Constants for network applications operating on top of the CADET service. 32 * @{ 33 */ 34 35 #ifndef GNUNET_APPLICATIONS_H 36 #define GNUNET_APPLICATIONS_H 37 38 #ifdef __cplusplus 39 extern "C" 40 { 41 #if 0 /* keep Emacsens' auto-indent happy */ 42 } 43 #endif 44 #endif 45 46 /** 47 * End of list marker. 48 */ 49 #define GNUNET_APPLICATION_TYPE_END 0 50 51 /** 52 * Test. 53 */ 54 #define GNUNET_APPLICATION_TYPE_TEST 1 55 56 /** 57 * Transfer of blocks for non-anonymmous file-sharing. 58 */ 59 #define GNUNET_APPLICATION_PORT_FS_BLOCK_TRANSFER "fs-block" 60 61 /** 62 * Transfer of blocks for random peer sampling. 63 */ 64 #define GNUNET_APPLICATION_PORT_RPS "rps" 65 66 /** 67 * Internet DNS resolution (external DNS gateway). This is a "well-known" 68 * service a peer may offer over CADET where the port is the hash of this 69 * string. 70 */ 71 #define GNUNET_APPLICATION_PORT_INTERNET_RESOLVER "exit-dns" 72 73 /** 74 * Internet IPv4 gateway (any TCP/UDP/ICMP). 75 */ 76 #define GNUNET_APPLICATION_PORT_IPV4_GATEWAY "exit-ipv4" 77 78 /** 79 * Internet IPv6 gateway (any TCP/UDP/ICMP). 80 */ 81 #define GNUNET_APPLICATION_PORT_IPV6_GATEWAY "exit-ipv6" 82 83 /** 84 * Internet exit regex prefix. Consisting of application ID, followed 85 * by version and padding. 86 */ 87 #define GNUNET_APPLICATION_TYPE_EXIT_REGEX_PREFIX "GNUNET-VPN-VER-0001-" 88 89 /** 90 * Consensus. 91 * 92 * @deprecated 93 */ 94 #define GNUNET_APPLICATION_TYPE_CONSENSUS 18 95 96 /** 97 * Set. Used for two-peer set operations implemented using stream. 98 * @deprecated 99 */ 100 #define GNUNET_APPLICATION_TYPE_SET 19 101 102 /** 103 * Conversation control data. 104 * @deprecated 105 */ 106 #define GNUNET_APPLICATION_TYPE_CONVERSATION_CONTROL 21 107 108 /** 109 * Conversation audio data. 110 * @deprecated 111 */ 112 #define GNUNET_APPLICATION_TYPE_CONVERSATION_AUDIO 22 113 114 /** 115 * MQTT publish-subscribe. 116 * @deprecated 117 */ 118 #define GNUNET_APPLICATION_TYPE_MQTT 23 119 120 /** 121 * Multicast data. 122 * @deprecated 123 */ 124 #define GNUNET_APPLICATION_TYPE_MULTICAST 26 125 126 127 #if 0 /* keep Emacsens' auto-indent happy */ 128 { 129 #endif 130 #ifdef __cplusplus 131 } 132 #endif 133 134 /* ifndef GNUNET_APPLICATIONS_H */ 135 #endif 136 137 /** @} */ /* end of group */ 138 139 /** @} */ /* end of group addition to Backbone */ 140 141 /* end of gnunet_applications.h */