gchar* vortex_frame_build_up_from_params_s VortexFrameType  type,
gint32  channel,
gint32  msgno,
gboolean  more,
guint32  seqno,
gint32  size,
gint32  ansno,
gchar *  content_type,
gchar *  transfer_encoding,
gchar *  payload,
gint *  frame_size
 

Creates a new frame from using the given data and returning current frame size resulting from the operation.

This function replaces vortex_frame_build_up_from_params and it is considered to be more accurate and secure.

Parameters:
type Frame type.
channel The channel number for the frame.
msgno The message number for the frame.
more More flag status for the frame.
seqno Sequence number for the frame
size The frame payload size.
ansno The answer number for the frame
content_type Optional content type to be used for the channel being sent. If no value is provided no content type will be placed. If content type provided is also the default value then no content type will be placed.
transfer_encoding Optional content transfer encoding. If no value is provided no content transfer type will be placed. If content transfer type provided is also the default value then no content type will be placed.
payload The payload is going to have the frame.
frame_size An optional pointer to an integer value which holds current frame size.
Returns:
A newly created frame that should be freed using g_free.