cp_httpclient_init(3)

cp_socket(3) cp_httpclient cp_socket(3)

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.

MAY 2006 libcprops