GNUnet 0.22.2
core.h File Reference

common internal definitions for core service More...

#include "gnunet_util_lib.h"
#include "gnunet_time_lib.h"
Include dependency graph for core.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  InitMessage
 Message transmitted core clients to gnunet-service-core to start the interaction. More...
 
struct  InitReplyMessage
 Message transmitted by the gnunet-service-core process to its clients in response to an INIT message. More...
 
struct  ConnectNotifyMessage
 Message sent by the service to clients to notify them about a peer connecting. More...
 
struct  DisconnectNotifyMessage
 Message sent by the service to clients to notify them about a peer disconnecting. More...
 
struct  NotifyTrafficMessage
 Message sent by the service to clients to notify them about messages being received or transmitted. More...
 
struct  SendMessageRequest
 Client notifying core about the maximum-priority message it has in the queue for a particular target. More...
 
struct  SendMessageReady
 Core notifying client that it is allowed to now transmit a message to the given target (response to GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST). More...
 
struct  SendMessage
 Client asking core to transmit a particular message to a particular target (response to GNUNET_MESSAGE_TYPE_CORE_SEND_READY). More...
 
struct  MonitorNotifyMessage
 Message sent by the service to monitor clients to notify them about a peer changing status. More...
 

Macros

#define DEBUG_CORE   GNUNET_EXTRA_LOGGING
 General core debugging. More...
 
#define GNUNET_CORE_OPTION_NOTHING   0
 Definition of bits in the InitMessage's options field that specify which events this client cares about. More...
 
#define GNUNET_CORE_OPTION_SEND_STATUS_CHANGE   4
 Client cares about connectivity changes. More...
 
#define GNUNET_CORE_OPTION_SEND_FULL_INBOUND   8
 Client wants all inbound messages in full. More...
 
#define GNUNET_CORE_OPTION_SEND_HDR_INBOUND   16
 Client just wants the 4-byte message headers of all inbound messages. More...
 
#define GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND   32
 Client wants all outbound messages in full. More...
 
#define GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND   64
 Client just wants the 4-byte message headers of all outbound messages. More...
 

Detailed Description

common internal definitions for core service

Author
Christian Grothoff

Definition in file core.h.

Macro Definition Documentation

◆ DEBUG_CORE

#define DEBUG_CORE   GNUNET_EXTRA_LOGGING

General core debugging.

Definition at line 35 of file core.h.

◆ GNUNET_CORE_OPTION_NOTHING

#define GNUNET_CORE_OPTION_NOTHING   0

Definition of bits in the InitMessage's options field that specify which events this client cares about.

Note that inbound messages for handlers that were specifically registered are always transmitted to the client.

Definition at line 43 of file core.h.

◆ GNUNET_CORE_OPTION_SEND_STATUS_CHANGE

#define GNUNET_CORE_OPTION_SEND_STATUS_CHANGE   4

Client cares about connectivity changes.

Definition at line 48 of file core.h.

◆ GNUNET_CORE_OPTION_SEND_FULL_INBOUND

#define GNUNET_CORE_OPTION_SEND_FULL_INBOUND   8

Client wants all inbound messages in full.

Definition at line 53 of file core.h.

◆ GNUNET_CORE_OPTION_SEND_HDR_INBOUND

#define GNUNET_CORE_OPTION_SEND_HDR_INBOUND   16

Client just wants the 4-byte message headers of all inbound messages.

Definition at line 59 of file core.h.

◆ GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND

#define GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND   32

Client wants all outbound messages in full.

Definition at line 64 of file core.h.

◆ GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND

#define GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND   64

Client just wants the 4-byte message headers of all outbound messages.

Definition at line 70 of file core.h.