# mco_lews_flush
RT

### Prototype

        int mco_lews_flush(lews_connection_context_h client_ctx_handle);

### Arguments

client_ctx_handle
The connection context handle.

### Description

> 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;
>         }

### Return Codes

-1
Network error
N
Number of bytes sent

### Files

Header file:
mcoewslite.h
Source file:
mcoewslite.c
Library:
mcoewslite.a