34 #ifndef GNUNET_ATS_APPLICATION_SERVICE_H 35 #define GNUNET_ATS_APPLICATION_SERVICE_H 44 struct GNUNET_ATS_ApplicationHandle;
53 struct GNUNET_ATS_ApplicationHandle *
69 struct GNUNET_ATS_ApplicationSuggestHandle;
84 struct GNUNET_ATS_ApplicationSuggestHandle *
98 GNUNET_ATS_ApplicationSuggestHandle *
sh);
static struct GNUNET_CADET_Channel * ch
Channel handle.
static const struct GNUNET_CONFIGURATION_Handle * cfg
Configuration we are using.
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).
struct GNUNET_IDENTITY_PrivateKey pk
Private key from command line option, or NULL.
void GNUNET_ATS_application_done(struct GNUNET_ATS_ApplicationHandle *ch)
Shutdown ATS application client.