litestomp
|
#include "stomp_message.h"
Functions | |
stomp_message_t * | stomp_message_create (stomp_status_t *status) |
void | stomp_message_destroy (stomp_message_t **message) |
void | stomp_message_format (stomp_message_t *message, const char *data, size_t len) |
stomp_message_t* stomp_message_create | ( | stomp_status_t * | status | ) |
Creates a new STOMP message object
status | A pointer to a status structure that will contain error details in case the message creation fails |
void stomp_message_destroy | ( | stomp_message_t ** | message | ) |
Destroy a STOMP message object. The object will be unusable after destruction
message | A pointer to a pointer of a message object |
void stomp_message_format | ( | stomp_message_t * | message, |
const char * | data, | ||
size_t | len | ||
) |
Writes data to the message object
message | the message object instance to write to |
data | the data to write |
len | the lenght of the data |