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 */
#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.
cryptographic primitives for GNUnet
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:103
uint32_t reserved
Always zero.
Definition: peerinfo.h:112
struct GNUNET_PeerIdentity peer
About which peer are we talking here?
Definition: peerinfo.h:117
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_INFO.
Definition: peerinfo.h:107
Message requesting a listing of all peers, restricted to the specified peer identity.
Definition: peerinfo.h:65
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:74
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL.
Definition: peerinfo.h:69
Message requesting a listing of peers, restricted to the specified peer identity.
Definition: peerinfo.h:42
struct GNUNET_PeerIdentity peer
Restrict to peers with this identity (optional field, check header.size!).
Definition: peerinfo.h:57
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_GET.
Definition: peerinfo.h:46
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:51
Header for all communications.
Definition: peerinfo.h:82
uint32_t include_friend_only
Include friend only HELLOs and peers in callbacks.
Definition: peerinfo.h:91
struct GNUNET_MessageHeader header
Type will be GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY.
Definition: peerinfo.h:86