GNUnet  0.19.5
peerinfo.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2009, 2010 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 PEERINFO_H
28 #define PEERINFO_H
29 
30 #include "gnunet_util_lib.h"
32 #include "gnunet_time_lib.h"
33 
35 
41 {
46 
51 
57 };
58 
64 {
69 
74 };
75 
76 
81 {
86 
91 };
92 
93 
102 {
107 
112 
116  struct GNUNET_PeerIdentity peer;
117 };
119 
120 /*#ifndef PEERINFO_H*/
121 #endif
122 /* end of peerinfo.h */
Maintain the list of currently known hosts.
Functions related to time.
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Header for all communications.
The identity of the host (wraps the signing key of the peer).
Message used to inform the client about a particular peer; this message is optionally followed by a H...
Definition: peerinfo.h:102
uint32_t reserved
Always zero.
Definition: peerinfo.h:111
struct GNUNET_PeerIdentity peer
About which peer are we talking here?
Definition: peerinfo.h:116
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_INFO.
Definition: peerinfo.h:106
Message requesting a listing of all peers, restricted to the specified peer identity.
Definition: peerinfo.h:64
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:73
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL.
Definition: peerinfo.h:68
Message requesting a listing of peers, restricted to the specified peer identity.
Definition: peerinfo.h:41
struct GNUNET_PeerIdentity peer
Restrict to peers with this identity (optional field, check header.size!).
Definition: peerinfo.h:56
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET.
Definition: peerinfo.h:45
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:50
Header for all communications.
Definition: peerinfo.h:81
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:90
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY.
Definition: peerinfo.h:85