dca_interface
6.3.4
|
Support functions to initialize/set and deinitialize/unset required 3rd party libraries used by the DCA.
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.
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... | |
void dca::InitCUrl | ( | ) |
Initializes libcurl. Do not use any DCA function before initializing libcurl.
libcurl requires that internal global variables are set up before use. Calling this support function ensures that the DCA can use the libcurl functions internally.
void dca::DeinitCUrl | ( | ) |
Deinitializes libcurl. Do not call any DCA function after you have called this function.
This is the counterpart of the InitCUrl() function, and frees up the global variables used internally by libcurl.
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.
The provided openssl support function SetOpenSslCallbacks() works with pthread and NTPL based threading models.
These callbacks are required to enable the openssl library to identify resouces for its owned thread.
void dca::UnsetOpenSslCallbacks | ( | ) |
Unsets the openssl callbacks. Do not call any DCA function after you have called this function.
After calling this function multithreaded SSL and HTTPS connection functions may not work properly anymore.