xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
SocketFactory.h
Go to the documentation of this file.
1#ifndef NET_SOCKET_FACTORY_H
2#define NET_SOCKET_FACTORY_H
3
6
7#if defined(__linux__) || defined(linux) || defined(__GNUG__)
10#elif defined(_WIN32) || defined(_WIN64)
13#else
14#error "Unsupported platform"
15#endif
16
17#include <memory>
18
19namespace Xale::Net
20{
22 {
23 public:
24 static std::unique_ptr<ISocket> createSocket();
25 static std::unique_ptr<IListenerSocket> createListenerSocket();
26 };
27}
28
29#endif // NET_SOCKET_FACTORY_H
Definition SocketFactory.h:22
static std::unique_ptr< ISocket > createSocket()
static std::unique_ptr< IListenerSocket > createListenerSocket()
Definition IListenerSocket.h:7