20 #ifndef INCLUDE_RCF_GLOBALS_HPP 21 #define INCLUDE_RCF_GLOBALS_HPP 27 #include <RCF/Export.hpp> 33 class OpenSslCryptoDll;
54 void setDefaultConnectTimeoutMs(
unsigned int connectTimeoutMs);
57 unsigned int getDefaultConnectTimeoutMs();
60 void setDefaultRemoteCallTimeoutMs(
unsigned int remoteCallTimeoutMs);
63 unsigned int getDefaultRemoteCallTimeoutMs();
66 void setZlibDllName(
const std::string & dllName);
69 std::string getZlibDllName()
const;
72 void setOpenSslDllName(
const std::string & dllName);
75 std::string getOpenSslDllName()
const;
78 void setOpenSslCryptoDllName(
const std::string & dllName);
81 std::string getOpenSslCryptoDllName()
const;
85 void setSimultaneousPublishLimit(std::size_t simultaneousPublishLimit);
88 std::size_t getSimultaneousPublishLimit()
const;
91 void setFileStreamDefaultDownloadDirectory(
const std::string & downloadDirectory);
92 std::string getFileStreamDefaultDownloadDirectory();
95 ZlibDll & getZlibDll();
96 OpenSslDll & getOpenSslDll();
97 OpenSslCryptoDll & getOpenSslCryptoDll();
99 typedef std::function<
104 const Exception & e)> OnExceptionCallback;
106 void setOnExceptionCallback(OnExceptionCallback cb);
107 OnExceptionCallback getOnExceptionCallback();
111 void releaseZlibDll();
112 void releaseOpenSslDll();
113 void releaseOpenSslCryptoDll();
116 OpenSslDll * mpOpenSslDll;
117 OpenSslCryptoDll * mpOpenSslCryptoDll;
119 std::string mZlibDllName;
120 std::string mOpenSslDllName;
121 std::string mOpenSslCryptoDllName;
123 std::size_t mSimultaneousPublishLimit;
125 std::string mFileStreamDefaultDownloadDirectory;
127 #if defined(RCF_WINDOWS) && RCF_FEATURE_OPENSSL==0 135 unsigned int mClientConnectTimeoutMs = 1000 * 2;
136 unsigned int mClientRemoteCallTimeoutMs = 1000 * 10;
138 OnExceptionCallback mOnExceptionCallback;
151 #endif // ! INCLUDE_RCF_GLOBALS_HPP RCF_EXPORT Globals & globals()
Exposes RCF global settings.
OpenSSL.
Definition: Enums.hpp:90
Base class for all RCF exceptions.
Definition: Exception.hpp:67
SslImplementation
Describes which SSL implementation to use.
Definition: Enums.hpp:84
Contains global RCF settings.
Definition: Globals.hpp:40
Definition: AmiIoHandler.hpp:23
Schannel.
Definition: Enums.hpp:87