mcorest_initialize

Prototype

    MCO_RET mcorest_initialize(char *db_name, char *addr, unsigned short port, mco_sock_params_t *s_params);
 

Arguments

db_name A pointer to the database name string
addr Networking interface for accepting connections (default: 0.0.0.0 - any)
port Port number for accepting connections
sock_params Additional parameters for the socket initialization

Description

mcorest_initialize() performs initialization of the networking interface and the RESTrt web service internal parameters.

Return Codes

MCO_S_OK Initialized successfully
MCO_E_ LEWS_INIT Error creating a networking interface or socket

Files

Header file:
mcorestrt.h
Source file:
mcorestrt.c
Library:
libmcorestrt.a