libchannel
an abstraction around communications channels
|
Abstractions around packet-oriented messages with data, file descriptors and channels. More...
Data Structures | |
struct | message |
[opaque] A message that can be sent over a channel. More... |
Functions | |
bool | message_append_data (struct message **m, array(char)) |
Append [more] raw data to an existing message. | |
bool | message_append_descriptors (struct message **m, array(int)) |
Append [more] descriptors to an existing message. | |
bool | message_append_channels (struct message **m, array(channelptr)) |
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) message_get_data(struct message *) | |
Obtain a reference to the raw data contained in a message. | |
array (int) message_get_descriptors(struct message *) | |
Obtain a reference to any descriptors contained in a message. | |
size_t | message_get_channels (struct message *) |
How many channels does this message hold? | |
struct channel * | message_get_channel (struct message *, size_t) |
Retrieve a particular channel from the message. | |
void | message_free (struct message *) |
Free a message, including any data it has copied. |
Abstractions around packet-oriented messages with data, file descriptors and channels.
Append [more] raw data to an existing message.
[in,out] | m | the message to append to; will be re-allocated |
Definition at line 146 of file message.c.
References channel_isvalid(), channel_size(), and message_free().
Append [more] raw data to an existing message.
[in,out] | m | the message to append to; will be re-allocated |
Definition at line 108 of file message.c.
Append [more] descriptors to an existing message.
[in,out] | m | the message to append to; will be re-allocated |
Definition at line 126 of file message.c.