GNUnet  0.11.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 
71 
72 
78 void
81  handle);
82 
83 
96 void
99  const struct GNUNET_PeerIdentity *peer,
100  const struct GNUNET_ATS_Properties *prop,
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  /* end of group */
116 
117 /* end of gnunet_transport_manipulation_service.h */
static struct GNUNET_TIME_Relative delay_in
Inbound delay to apply to all peers.
static const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration we are using.
Definition: gnunet-abd.c:36
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.
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:85
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.