005.c 282 B

123456789
  1. struct GNUNET_MQ_Envelope *env;
  2. struct GNUNET_MessageHeader *msg;
  3. env = GNUNET_MQ_msg_extra (msg, payload_size, GNUNET_MY_MESSAGE_TYPE);
  4. GNUNET_memcpy (&msg[1],
  5. &payload,
  6. payload_size);
  7. // Send message via message queue 'mq'
  8. GNUNET_mq_send (mq, env);