GNUnet  0.11.x
gnunet_ats_application_service.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2010-2015, 2018 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  */
34 #ifndef GNUNET_ATS_APPLICATION_SERVICE_H
35 #define GNUNET_ATS_APPLICATION_SERVICE_H
36 
37 #include "gnunet_constants.h"
38 #include "gnunet_util_lib.h"
39 
44 struct GNUNET_ATS_ApplicationHandle;
45 
46 
53 struct GNUNET_ATS_ApplicationHandle *
55 
56 
62 void
63 GNUNET_ATS_application_done (struct GNUNET_ATS_ApplicationHandle *ch);
64 
65 
69 struct GNUNET_ATS_ApplicationSuggestHandle;
70 
71 
84 struct GNUNET_ATS_ApplicationSuggestHandle *
85 GNUNET_ATS_application_suggest (struct GNUNET_ATS_ApplicationHandle *ch,
86  const struct GNUNET_PeerIdentity *peer,
89 
90 
96 void
98  GNUNET_ATS_ApplicationSuggestHandle *sh);
99  /* end of group */
101 
102 #endif
103 /* end of file gnunet_ats_application_service.h */
static struct GNUNET_CADET_Channel * ch
Channel handle.
Definition: gnunet-cadet.c:117
static struct GNUNET_CRYPTO_EddsaPrivateKey * pk
Private key of this peer.
static const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration we are using.
Definition: gnunet-abd.c:36
struct GNUNET_BIO_WriteHandle * bw
hanlde to the file to write the load statistics to
GNUNET_MQ_PreferenceKind
Enum defining all known preference categories.
static struct SolverHandle * sh
struct GNUNET_TESTBED_Peer * peer
The peer associated with this model.
struct GNUNET_ATS_ApplicationHandle * GNUNET_ATS_application_init(const struct GNUNET_CONFIGURATION_Handle *cfg)
Initialize the ATS application client handle.
32-bit bandwidth used for network exchange by GNUnet, in bytes per second.
void GNUNET_ATS_application_suggest_cancel(struct GNUNET_ATS_ApplicationSuggestHandle *sh)
We no longer care about communicating with a peer.
struct GNUNET_ATS_ApplicationSuggestHandle * GNUNET_ATS_application_suggest(struct GNUNET_ATS_ApplicationHandle *ch, const struct GNUNET_PeerIdentity *peer, enum GNUNET_MQ_PreferenceKind pk, struct GNUNET_BANDWIDTH_Value32NBO bw)
An application would like to communicate with a peer.
The identity of the host (wraps the signing key of the peer).
configuration data
Definition: configuration.c:85
void GNUNET_ATS_application_done(struct GNUNET_ATS_ApplicationHandle *ch)
Shutdown ATS application client.