Implementation of the message abstraction. More...
#include "libchannel.h"
#include "libchannel-internal.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
void | message_free (struct message *m) |
Free a message, including any data it has copied. | |
bool | message_append_data (message **m, array(char) data) |
Append [more] raw data to an existing message. | |
bool | message_append_descriptors (message **mp, array(int) fds) |
Append [more] descriptors to an existing message. | |
bool | message_append_channels (message **m, array(channelptr) channels) |
Append [more] raw data to an existing message. | |
struct message * | message_raw_data (char *data, size_t len) |
Build a message that only contains raw data. This copies the data. | |
array (char) | |
Obtain a reference to the raw data contained in a message. | |
array (int) | |
Obtain a reference to any descriptors contained in a message. | |
size_t | message_get_channels (struct message *m) |
How many channels does this message hold? | |
channel * | message_get_channel (struct message *m, size_t index) |
Retrieve a particular channel from the message. |