mcorest_add_interface

Add a network interface to the MCO REST server instance.

For an overview see page Web Services

Prototype

    MCO_RET mcorest_add_interface(mcorest_h rest,
                  const char *addr,
                  unsigned short port,
                  void *ssl_params,
                  mcorest_interface_h *intf);

Arguments

rest
Server instance handle.
addr
IP address of the interface, as a string.
port
IP port to listen on.
ssl_params
SSL parameters structure (pass NULL to disable SSL).
intf
Pointer to receive the interface handle.

Description

This function adds a network interface to the MCO REST server instance. This function should only be called from the same thread that created the server.

Return Codes

MCO_S_OK = 0
Success.
MCO_E_REST_*
Any of the Web Services Error Codes.

Files

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