VortexFrame * vortex_frame_create_full ( VortexCtx ctx,
VortexFrameType  type,
int  channel,
int  msgno,
axl_bool  more,
unsigned int  seqno,
int  size,
int  ansno,
const char *  content_type,
const char *  transfer_encoding,
const void *  payload 

Creates a new frame as vortex_frame_create but also allowing to specify mime header content, that is, Content-Type and Content-Transfer-Encoding values.

This function works like vortex_frame_create function but allowing to specify every parameter used (possible) for a frame.

The function also performs a local copy for the content type ("Content-Type:" ) value and the transfer encoding ("Content-Transfer-Encoding:" ) value provided.

ctxThe context where the operation will be performed.
typeThe frame type to build.
channelThe channel number the frame have.
msgnoThe message number the frame have.
moreMore flag configuration for the frame.
seqnoThe sequence number for the frame to build.
sizeThe frame payload size.
ansnoThe answer number the frame have.
content_typeThe MIME Content-Type value to be used for this frame. Optional value.
transfer_encodingThe MIME Content-Transfer-Encoding value to be used for this frame. Optional value.
payloadThe payload the frame hold.
A newly created VortexFrame object that must be unrefered using vortex_frame_free when no longer needed. Function may return NULL reference if allow fails or ctx received is NULL.

References MIME_CONTENT_TRANSFER_ENCODING, MIME_CONTENT_TYPE, VORTEX_CHECK_REF, VORTEX_CHECK_REF2, vortex_ctx_ref2(), and vortex_frame_set_mime_header().

Referenced by vortex_frame_create().