GNUnet  0.11.x
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_crypto_lib.h"
31 #include "gnunet_time_lib.h"
33 
34 
36 
42 {
47 
52 
58 };
59 
65 {
70 
75 };
76 
77 
82 {
87 
92 };
93 
94 
103 {
108 
113 
117  struct GNUNET_PeerIdentity peer;
118 };
120 
121 /*#ifndef PEERINFO_H*/
122 #endif
123 /* end of peerinfo.h */
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:51
struct GNUNET_PeerIdentity peer
Restrict to peers with this identity (optional field, check header.size!).
Definition: peerinfo.h:57
Message used to inform the client about a particular peer; this message is optionally followed by a H...
Definition: peerinfo.h:102
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
cryptographic primitives for GNUnet
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET.
Definition: peerinfo.h:46
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
The identity of the host (wraps the signing key of the peer).
#define GNUNET_PACKED
gcc-ism to get packed structs.
Message requesting a listing of all peers, restricted to the specified peer identity.
Definition: peerinfo.h:64
Message requesting a listing of peers, restricted to the specified peer identity. ...
Definition: peerinfo.h:41
Header for all communications.
static unsigned long long reserved
How much space have we currently reserved?
Header for all communications.
Definition: peerinfo.h:81