dca_interface  6.3.4
dca_callbacks.h File Reference

This header includes initialization/deinitialization support functions for the 3rd party libraries used by the DCA. More...

Go to the source code of this file.

Functions

void dca::InitCUrl ()
 Initializes libcurl. Do not use any DCA function before initializing libcurl. More...
 
void dca::DeinitCUrl ()
 Deinitializes libcurl. Do not call any DCA function after you have called this function. More...
 
void dca::SetOpenSslCallbacks ()
 Initializes the required callbacks for OpenSSL when using HTTPS or SSL connections in a multi-threaded environment. The DCA requires these callbacks to be set up. Do not call any DCA function before setting up the openssl callbacks. More...
 
void dca::UnsetOpenSslCallbacks ()
 Unsets the openssl callbacks. Do not call any DCA function after you have called this function. More...
 

Detailed Description

This header includes initialization/deinitialization support functions for the 3rd party libraries used by the DCA.

Note
The code snippets in dca_callbacks.cpp are simply samples that show how to set up libcurl and OpenSSL to use them in a multi-threaded environment. If you already initialize the two libraries in your application code you will not need to use these functions.

You must call the init/set functions before using any DCA function or class, and it is recommended that you call the deinit/unset functions at shutdown to cleanup global variables and other resources.

Definition in file dca_callbacks.h.