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