2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 2, or (at your
8 option) any later version.
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 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file hostlist/gnunet-daemon-hostlist.h
23 * @brief common internal definitions for hostlist daemon
24 * @author Matthias Wachs
28 #include "hostlist-client.h"
29 #include "hostlist-server.h"
30 #include "gnunet_core_service.h"
31 #include "gnunet_getopt_lib.h"
32 #include "gnunet_protocols.h"
33 #include "gnunet_program_lib.h"
34 #include "gnunet_statistics_service.h"
35 #include "gnunet_strings_lib.h"
36 #include "gnunet_time_lib.h"
37 #include "gnunet_util_lib.h"
40 * General hostlist daemon debugging.
42 #define DEBUG_HOSTLIST GNUNET_NO
45 * A HOSTLIST_ADV message is used to exchange information about
46 * hostlist advertisements. This struct is always
47 * followed by the actual url under which the hostlist can be obtained:
49 * 1) transport-name (0-terminated)
50 * 2) address-length (uint32_t, network byte order; possibly
52 * 3) address expiration (GNUNET_TIME_AbsoluteNBO); possibly
54 * 4) address (address-length bytes; possibly unaligned!)
56 struct GNUNET_HOSTLIST_ADV_Message
59 * Type will be GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT.
61 struct GNUNET_MessageHeader header;
64 * Always zero (for alignment).
66 uint32_t reserved GNUNET_PACKED;
70 /* end of gnunet-daemon-hostlist.h */