Method

IbisMessageserialize_to_string

since: 0.1

Declaration [src]

char*
ibis_message_serialize_to_string (
  IbisMessage* message,
  gboolean include_tags
)

Description [src]

Serializes message into a string.

If include_tags is FALSE, the tags will not be added to the output. This only should be set TRUE if the message-tags capability has been negotiated with the server.

This string does include the trailing \r\n.

Available since: 0.1

Parameters

include_tags

Type: gboolean

Whether or not tags should be included.

Return value

Type: char*

The serialized message.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.