# mco_lews_start_listen
RT

### Prototype

        MCO_RET mco_lews_start_listen(void)

### Description

> The function starts listening for incoming connections on the LEWS server socket.

> It must be called after mco_lews_initialize() and is automatically invoked by mco_lews_start(). Therefore, it should typically not be called directly by the application unless implementing a custom startup sequence—and even then, only once.

>         int rc;
>         ...
>         rc = mco_lews_start_listen();
>         if (MCO_S_OK != rc)
>             return rc;
>         ...

### Return Codes

MCO_S_OK
Operation completed successfully.
MCO_E_LEWS_NOT_INITIALIZED
LEWS has not been initialized.
MCO_E_LEWS_LISTEN
A system error occurred while attempting to start listening.

### Files

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