example IPC messages between RPS API and GNS service More...
#include "gnunet_rps_service.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_RPS_P2P_PullReplyMessage |
P2P Message to send PeerIDs to other peer. More... | |
struct | GNUNET_RPS_CS_SeedMessage |
Message from client to service with seed of peers. More... | |
struct | GNUNET_RPS_CS_SubStartMessage |
Message from client to service telling it to start a new sub. More... | |
struct | GNUNET_RPS_CS_SubStopMessage |
Message from client to service telling it to stop a new sub. More... | |
struct | GNUNET_RPS_CS_DEBUG_ViewRequest |
Message from client to service indicating that clients wants to get updates of the view. More... | |
struct | GNUNET_RPS_CS_DEBUG_ViewReply |
Message from service to client containing current update of view. More... | |
struct | GNUNET_RPS_CS_DEBUG_StreamRequest |
Message from client to service indicating that clients wants to get stream of biased peers. More... | |
struct | GNUNET_RPS_CS_DEBUG_StreamReply |
Message from service to client containing peer from biased stream. More... | |
Macros | |
#define | GNUNET_RPS_CADET_PORT 31337 |
Mesh port used by RPS. More... | |
Typedefs | |
typedef void(* | PeerOp) (void *cls, const struct GNUNET_PeerIdentity *peer) |
Functions of this type can be used to be stored at a peer for later execution. More... | |
typedef int(* | PeersIterator) (void *cls, const struct GNUNET_PeerIdentity *peer) |
Iterator over valid peers. More... | |
Enumerations | |
enum | Peers_PeerFlags { Peers_PULL_REPLY_PENDING = 0x01 , Peers_ONLINE = 0x20 , Peers_TO_DESTROY = 0x40 } |
Different flags indicating the status of another peer. More... | |
enum | Peers_ChannelFlags { Peers_CHANNEL_ESTABLISHED_TWICE = 0x1 , Peers_CHANNEL_CLEAN = 0x2 , Peers_CHANNEL_DESTROING = 0x4 } |
Keep track of the status of a channel. More... | |
enum | Peers_ChannelRole { Peers_CHANNEL_ROLE_SENDING = 0x01 , Peers_CHANNEL_ROLE_RECEIVING = 0x02 } |
The role of a channel. More... | |
Variables | |
struct GNUNET_STATISTICS_Handle * | stats |
Handle to the statistics service. More... | |
example IPC messages between RPS API and GNS service
Definition in file rps.h.
typedef void(* PeerOp) (void *cls, const struct GNUNET_PeerIdentity *peer) |
typedef int(* PeersIterator) (void *cls, const struct GNUNET_PeerIdentity *peer) |
Iterator over valid peers.
cls | closure |
peer | current public peer id |
enum Peers_PeerFlags |
Different flags indicating the status of another peer.
Definition at line 245 of file rps.h.
enum Peers_ChannelFlags |
Keep track of the status of a channel.
This is needed in order to know what to do with a channel when it's destroyed.
Definition at line 275 of file rps.h.
enum Peers_ChannelRole |
The role of a channel.
Sending or receiving.
Enumerator | |
---|---|
Peers_CHANNEL_ROLE_SENDING | Channel is used for sending. |
Peers_CHANNEL_ROLE_RECEIVING | Channel is used for receiving. |
Definition at line 298 of file rps.h.
|
extern |
Handle to the statistics service.
Definition at line 462 of file gnunet-service-rps.c.