GNUnet 0.21.1
gnunet-daemon-hostlist_server.h
Go to the documentation of this file.
1/*
2 This file is part of GNUnet.
3 Copyright (C) 2009 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
27#ifndef GNUNET_DAEMON_HOSTLIST_SERVER_H
28#define GNUNET_DAEMON_HOSTLIST_SERVER_H
29
30#include "gnunet_core_service.h"
32#include "gnunet_util_lib.h"
33
34
45int
50 int advertise);
51
52
56void
58
59
60#endif
61/* end of gnunet-daemon-hostlist_server.h */
static struct GNUNET_SCHEDULER_Task * st
The shutdown task.
static GNUNET_CORE_ConnectEventHandler server_ch
Handle to hostlist server's connect handler.
void GNUNET_HOSTLIST_server_stop(void)
Stop server offering our hostlist.
int GNUNET_HOSTLIST_server_start(const struct GNUNET_CONFIGURATION_Handle *c, struct GNUNET_STATISTICS_Handle *st, struct GNUNET_CORE_Handle *core, GNUNET_CORE_ConnectEventHandler *server_ch, int advertise)
Start server offering our hostlist.
static struct GNUNET_CORE_Handle * core
Handle to the CORE service.
Core service; the main API for encrypted P2P communications.
API to create, modify and access statistics.
void *(* GNUNET_CORE_ConnectEventHandler)(void *cls, const struct GNUNET_PeerIdentity *peer, struct GNUNET_MQ_Handle *mq)
Method called whenever a given peer connects.
Context for the core service connection.
Definition: core_api.c:78
Handle for the service.