summaryrefslogtreecommitdiff
path: root/doc/documentation/tutorial-examples/005.c
blob: 0c459f509d1c4ad86497d7ccf0a418fc9927fa09 (plain)
1
2
3
4
5
6
7
8
struct GNUNET_MQ_Envelope *env;
struct GNUNET_MessageHeader *msg;

env = GNUNET_MQ_msg_extra (msg, payload_size, GNUNET_MY_MESSAGE_TYPE);
memcpy (&msg[1], &payload, payload_size);
// Send message via message queue 'mq'
GNUNET_mq_send (mq, env);