GNUnet  0.10.x
gnunet-service-ats_preferences.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2011-2014 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  */
26 #ifndef GNUNET_SERVICE_ATS_PREFERENCES_H
27 #define GNUNET_SERVICE_ATS_PREFERENCES_H
28 
29 #include "gnunet_util_lib.h"
30 #include "gnunet_ats_service.h"
31 #include "gnunet-service-ats.h"
33 #include "ats.h"
34 
38 #define DEFAULT_ABS_PREFERENCE 0.0
39 
43 #define DEFAULT_REL_PREFERENCE 0.0
44 
45 
52 void
54  const struct ChangePreferenceMessage *msg);
55 
56 
60 void
61 GAS_preference_init (void);
62 
63 
67 void
68 GAS_preference_done (void);
69 
70 
79 const double *
81  const struct GNUNET_PeerIdentity *id);
82 
83 
89 void
91 
92 
93 #endif
struct GNUNET_SERVICE_Client * client
Client handle.
struct GNUNET_MessageHeader * msg
Definition: 005.c:2
const double * GAS_preference_get_by_peer(void *cls, const struct GNUNET_PeerIdentity *id)
Get the normalized preference values for a specific peer.
Handle to a client that is connected to a service.
Definition: service.c:249
void GAS_handle_preference_change(struct GNUNET_SERVICE_Client *client, const struct ChangePreferenceMessage *msg)
Handle &#39;preference change&#39; messages from clients.
void GAS_preference_client_disconnect(struct GNUNET_SERVICE_Client *client)
A performance client disconnected.
void GAS_preference_done(void)
Shutdown preferences subsystem.
void GAS_preference_init(void)
Initialize preferences subsystem.
The identity of the host (wraps the signing key of the peer).
Automatic transport selection and outbound bandwidth determination.
Client to ATS: I have a performance preference for a peer.
Definition: ats.h:447
automatic transport selection messages