diff options
Diffstat (limited to 'src/include/gnunet_transport_manipulation_service.h')
-rw-r--r-- | src/include/gnunet_transport_manipulation_service.h | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/src/include/gnunet_transport_manipulation_service.h b/src/include/gnunet_transport_manipulation_service.h deleted file mode 100644 index 09fb138f8..000000000 --- a/src/include/gnunet_transport_manipulation_service.h +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2009-2014, 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 | * @author Christian Grothoff | ||
23 | * | ||
24 | * @file | ||
25 | * Low-level P2P IO | ||
26 | * | ||
27 | * @defgroup transport Transport service | ||
28 | * Low-level P2P IO | ||
29 | * | ||
30 | * @see [Documentation](https://gnunet.org/transport-service) | ||
31 | * | ||
32 | * @{ | ||
33 | */ | ||
34 | |||
35 | #ifndef GNUNET_TRANSPORT_MANIPULATION_SERVICE_H | ||
36 | #define GNUNET_TRANSPORT_MANIPULATION_SERVICE_H | ||
37 | |||
38 | |||
39 | #ifdef __cplusplus | ||
40 | extern "C" | ||
41 | { | ||
42 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
43 | } | ||
44 | #endif | ||
45 | #endif | ||
46 | |||
47 | #include "gnunet_util_lib.h" | ||
48 | #include "gnunet_ats_service.h" | ||
49 | |||
50 | /** | ||
51 | * Version number of the transport API. | ||
52 | */ | ||
53 | #define GNUNET_TRANSPORT_MANIPULATION_VERSION 0x00000003 | ||
54 | |||
55 | /** | ||
56 | * Handle for transport manipulation. | ||
57 | */ | ||
58 | struct GNUNET_TRANSPORT_ManipulationHandle; | ||
59 | |||
60 | |||
61 | /** | ||
62 | * Connect to the transport service. Note that the connection may | ||
63 | * complete (or fail) asynchronously. | ||
64 | * | ||
65 | * @param cfg configuration to use | ||
66 | * @return NULL on error | ||
67 | */ | ||
68 | struct GNUNET_TRANSPORT_ManipulationHandle * | ||
69 | GNUNET_TRANSPORT_manipulation_connect (const struct | ||
70 | GNUNET_CONFIGURATION_Handle *cfg); | ||
71 | |||
72 | |||
73 | /** | ||
74 | * Disconnect from the transport service. | ||
75 | * | ||
76 | * @param handle handle returned from connect | ||
77 | */ | ||
78 | void | ||
79 | GNUNET_TRANSPORT_manipulation_disconnect (struct | ||
80 | GNUNET_TRANSPORT_ManipulationHandle * | ||
81 | handle); | ||
82 | |||
83 | |||
84 | /** | ||
85 | * Set transport metrics for a peer and a direction | ||
86 | * | ||
87 | * @param handle transport handle | ||
88 | * @param peer the peer to set the metric for | ||
89 | * @param prop the performance metrics to set | ||
90 | * @param delay_in inbound delay to introduce | ||
91 | * @param delay_out outbound delay to introduce | ||
92 | * | ||
93 | * Note: Delay restrictions in receiving direction will be enforced | ||
94 | * with one message delay. | ||
95 | */ | ||
96 | void | ||
97 | GNUNET_TRANSPORT_manipulation_set (struct | ||
98 | GNUNET_TRANSPORT_ManipulationHandle *handle, | ||
99 | const struct GNUNET_PeerIdentity *peer, | ||
100 | const struct GNUNET_ATS_Properties *prop, | ||
101 | struct GNUNET_TIME_Relative delay_in, | ||
102 | struct GNUNET_TIME_Relative delay_out); | ||
103 | |||
104 | |||
105 | #if 0 /* keep Emacsens' auto-indent happy */ | ||
106 | { | ||
107 | #endif | ||
108 | #ifdef __cplusplus | ||
109 | } | ||
110 | #endif | ||
111 | |||
112 | /* ifndef GNUNET_TRANSPORT_MANIPULATION_SERVICE_H */ | ||
113 | #endif | ||
114 | |||
115 | /** @} */ /* end of group */ | ||
116 | |||
117 | /* end of gnunet_transport_manipulation_service.h */ | ||