Function silc_mime_assemble
SYNOPSIS
SilcMime silc_mime_assemble(SilcMimeAssembler assembler,
SilcMime partial);
DESCRIPTION
Processes and attempts to assemble the received MIME fragment `partial'.
To check if a received MIME message is a fragment use the
silc_mime_is_partial function. Returns NULL if all fragments has not
yet been received, or the newly allocated completed MIME message if
all fragments were received. The caller must free the returned
SilcMime context. The caller must not free the `partial'.
EXAMPLE
// Assemble received MIME fragment
mime = silc_mime_decode(data, data_len);
if (silc_mime_is_partial(mime) == TRUE) {
complete = silc_mime_assmeble(assembler, mime);
if (complete == NULL)
return;
...
}
|