# mcorest_interface_check

> Check the interface for incoming network connections.

### For an overview see page Web Services

### Prototype

      MCO_RET mcorest_interface_check(mcorest_interface_h intf,
                          long timeout,
                          mcorest_conn_h *conn);

### Arguments

intf | Interface handle
timeout | Incoming connection wait timeout
conn | Pointer to receive the accepted connection's handle

### Description

> This function checks the interface for incoming network connections. It accepts one incoming connection and returns a pointer to its handle through the `conn` parameter. This function may be called by a thread other than the one that created the interface. However, it should not be called with the same interface from different threads.

### Return Codes

MCO_S_OK = 0 | Success
MCO_S_REST_TIMEOUT | No connection was accepted
MCO_E_REST_* | Any of the Web Services Error Codes

### Files

Header file:
mcorest.h
Source file:
mcorest.c
Library:
libmcorest.a