int mco_lews_flush(lews_connection_context_h client_ctx_handle);
The
mco_lews_flush()function transfers the contents of the outgoing buffer and subsequently clears the buffer.
ret = mco_lews_append_str(p_ctx, "<html><body><h1>Some title</h1><p>Some <b>text</b></p></body></html>"); if (ret != MCO_S_OK) { printf("mco_lews_append_str error %d", ret); return; } ret = mco_lews_flush(p_ctx); if (ret > 0) { printf("mco_lews_flush error %d", ret); return; }