35#define DEBUG_CORE GNUNET_EXTRA_LOGGING
43#define GNUNET_CORE_OPTION_NOTHING 0
48#define GNUNET_CORE_OPTION_SEND_STATUS_CHANGE 4
53#define GNUNET_CORE_OPTION_SEND_FULL_INBOUND 8
59#define GNUNET_CORE_OPTION_SEND_HDR_INBOUND 16
64#define GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND 32
70#define GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND 64
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.
Message sent by the service to clients to notify them about a peer connecting.
struct GNUNET_PeerIdentity peer
Identity of the connecting peer.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT.
uint32_t reserved
Always zero.
Message sent by the service to clients to notify them about a peer disconnecting.
uint32_t reserved
Always zero.
struct GNUNET_PeerIdentity peer
Identity of the connecting peer.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT.
The identity of the host (wraps the signing key of the peer).
Time for absolute time used by GNUnet, in microseconds and in network byte order.
Message transmitted core clients to gnunet-service-core to start the interaction.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_INIT.
uint32_t options
Options, see GNUNET_CORE_OPTION_ values.
Message transmitted by the gnunet-service-core process to its clients in response to an INIT message.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY.
struct GNUNET_PeerIdentity my_identity
Public key of the local peer.
uint32_t reserved
Always zero.
Message sent by the service to monitor clients to notify them about a peer changing status.
struct GNUNET_PeerIdentity peer
Identity of the peer.
uint32_t state
New peer state, an enum GNUNET_CORE_KxState in NBO.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_MONITOR_NOTIFY.
struct GNUNET_TIME_AbsoluteNBO timeout
How long will we stay in this state (if nothing else happens)?
Message sent by the service to clients to notify them about messages being received or transmitted.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND or GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND.
struct GNUNET_PeerIdentity peer
Identity of the receiver or sender.
Core notifying client that it is allowed to now transmit a message to the given target (response to G...
uint16_t smr_id
smr_id from the request.
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_SEND_READY.
struct GNUNET_PeerIdentity peer
Identity of the intended target.
uint16_t size
How many bytes are allowed for transmission? Guaranteed to be at least as big as the requested size,...
Client notifying core about the maximum-priority message it has in the queue for a particular target.
uint32_t priority
How important is this message?
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST.
struct GNUNET_PeerIdentity peer
Identity of the intended target.
uint16_t size
How large is the message?
uint16_t smr_id
Counter for this peer to match SMRs to replies.
uint32_t reserved
Always zero.
struct GNUNET_TIME_AbsoluteNBO deadline
By what time would the sender really like to see this message transmitted?
Client asking core to transmit a particular message to a particular target (response to GNUNET_MESSAG...
struct GNUNET_MessageHeader header
Header with type GNUNET_MESSAGE_TYPE_CORE_SEND.
struct GNUNET_TIME_AbsoluteNBO deadline
By what time would the sender really like to see this message transmitted?
uint32_t priority
How important is this message? Contains a enum GNUNET_MQ_PriorityPreferences in NBO.
struct GNUNET_PeerIdentity peer
Identity of the intended receiver.