xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
SSLSocketFactory.h
Go to the documentation of this file.
1#ifndef NET_SSL_SOCKET_FACTORY_H
2#define NET_SSL_SOCKET_FACTORY_H
3
7
8#if defined(__linux__) || defined(linux) || defined(__GNUG__)
11#elif defined(_WIN32) || defined(_WIN64)
12#include "Net/Socket/Windows/WindowsSSLSocket.h"
13#include "Net/Socket/Windows/WindowsSSLListenerSocket.h"
14#else
15#error "Unsupported platform"
16#endif
17
18#include <memory>
19#include <string>
20
21namespace Xale::Net
22{
24 {
25 public:
26 SSLSocketFactory(const std::string& SSLCert, const std::string& SSLKey);
27 std::unique_ptr<ISocket> createSocket() override;
28 std::unique_ptr<IListenerSocket> createListenerSocket() override;
29 private:
30 std::string _SSLCert;
31 std::string _SSLKey;
32 };
33}
34
35#endif // NET_SSL_SOCKET_FACTORY_H
Definition ISocketFactory.h:12
SSLSocketFactory(const std::string &SSLCert, const std::string &SSLKey)
Definition SSLSocketFactory.cpp:5
std::unique_ptr< IListenerSocket > createListenerSocket() override
std::unique_ptr< ISocket > createSocket() override
Definition IPacket.h:8