GNUnet  0.10.x
005.c
Go to the documentation of this file.
3 
4 env = GNUNET_MQ_msg_extra (msg, payload_size, GNUNET_MY_MESSAGE_TYPE);
5 GNUNET_memcpy (&msg[1],
6  &payload,
7  payload_size);
8 // Send message via message queue 'mq'
9 GNUNET_mq_send (mq, env);
struct GNUNET_MessageHeader * msg
Definition: 005.c:2
#define GNUNET_memcpy(dst, src, n)
Call memcpy() but check for n being 0 first.
GNUNET_mq_send(mq, env)
#define GNUNET_MQ_msg_extra(mvar, esize, type)
Allocate an envelope, with extra space allocated after the space needed by the message struct...
Definition: gnunet_mq_lib.h:52
struct GNUNET_MQ_Envelope * env
Definition: 005.c:1
static unsigned long long payload
How much data are we currently storing in the database?
struct GNUNET_MQ_Handle * mq
Definition: 003.c:5
Header for all communications.