cp_httpclient_init(3) - Linux man page

Name

cp_httpclient_init, cp_httpclient_shutdown - initialize / finalize http client api

Synopsis

#include <cprops/httpclient.h>

int cp_httpclient_init();
int cp_httpclient_shutdown();

Description

cp_httpclient_init initializes the services provided by the cp_httpclient api and must be called before processing any HTTP requests.
cp_httpclient_shutdown stops any background threads started to service HTTP requests and performs cleanup.

Return Value

cp_httpclient_init returns 0 on success, -1 on error or 1 if already initialized. Initialization may fail if memory for the internal structures cannot be allocated.
cp_httpclient_shutdown returns 0 on success or 1 if already initialized.