Add a network interface to the
MCO RESTserver instance.
MCO_RET mcorest_add_interface(mcorest_h rest,
const char *addr,
unsigned short port,
void *ssl_params,
mcorest_interface_h *intf);
| 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 |
This function adds a network interface to the
MCO RESTserver instance. This function should only be called from the same thread that created the server.
| MCO_S_OK = 0 | Success |
| MCO_E_REST_* | Any of the Web Services Error Codes |