GNUnet  0.10.x
gnunet_transport_manipulation_service.h
Go to the documentation of this file.
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 
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 
53 #define GNUNET_TRANSPORT_MANIPULATION_VERSION 0x00000003
54 
59 
60 
70 
71 
77 void
79 
80 
93 void
95  const struct GNUNET_PeerIdentity *peer,
96  const struct GNUNET_ATS_Properties *prop,
99 
100 
101 #if 0 /* keep Emacsens' auto-indent happy */
102 {
103 #endif
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 /* ifndef GNUNET_TRANSPORT_MANIPULATION_SERVICE_H */
109 #endif
110  /* end of group */
112 
113 /* end of gnunet_transport_manipulation_service.h */
static struct GNUNET_TIME_Relative delay_in
Inbound delay to apply to all peers.
Handle for the transport service (includes all of the state for the transport service).
ATS performance characteristics for an address.
static struct GNUNET_DNS_Handle * handle
Handle to transport service.
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
Definition: gnunet-arm.c:104
struct GNUNET_TESTBED_Peer * peer
The peer associated with this model.
static struct GNUNET_TIME_Relative delay_out
Outbound delay to apply to all peers.
The identity of the host (wraps the signing key of the peer).
struct GNUNET_TRANSPORT_ManipulationHandle * GNUNET_TRANSPORT_manipulation_connect(const struct GNUNET_CONFIGURATION_Handle *cfg)
Connect to the transport service.
configuration data
Definition: configuration.c:83
Automatic transport selection and outbound bandwidth determination.
void GNUNET_TRANSPORT_manipulation_disconnect(struct GNUNET_TRANSPORT_ManipulationHandle *handle)
Disconnect from the transport service.
void GNUNET_TRANSPORT_manipulation_set(struct GNUNET_TRANSPORT_ManipulationHandle *handle, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_ATS_Properties *prop, struct GNUNET_TIME_Relative delay_in, struct GNUNET_TIME_Relative delay_out)
Set transport metrics for a peer and a direction.
Time for relative time used by GNUnet, in microseconds.