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.
void dca::DeinitCUrl ()
 Deinitializes libcurl. Do not call any DCA function after you have called this function.
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.
void dca::UnsetOpenSslCallbacks ()
 Unsets the openssl callbacks. Do not call any DCA function after you have called this function.

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.


Generated on 26 Sep 2016 for dca_interface by  doxygen 1.6.1