Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Common/Cpp/Sockets/ServerSocket.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* Server Socket
*
* From: https://github.com/PokemonAutomation/
*
* The default AbstractServerSocket backend for the current platform,
* mirroring "ClientSocket.h". The Qt backend (ServerSocket_Qt) exists
* for callers that need to integrate with a Qt event loop; it is not
* the default.
*
*/

#ifndef PokemonAutomation_ServerSocket_H
#define PokemonAutomation_ServerSocket_H



#ifdef _WIN32
#include "ServerSocket_WinSocket.h"
namespace PokemonAutomation{
using ServerSocket = ServerSocket_WinSocket;
}
#else
#include "ServerSocket_POSIX.h"
namespace PokemonAutomation{
using ServerSocket = ServerSocket_POSIX;
}
#endif



#endif
1 change: 1 addition & 0 deletions SerialPrograms/cmake/SourceFiles.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ file(GLOB LIBRARY_SOURCES
../Common/Cpp/Sockets/ServerSocket_POSIX.h
../Common/Cpp/Sockets/ServerSocket_WinSocket.h
../Common/Cpp/Sockets/ServerSocket_Qt.h
../Common/Cpp/Sockets/ServerSocket.h
../Common/Cpp/Sockets/Sockets_Tests.cpp
../Common/Cpp/Sockets/Sockets_Tests.h
../Common/Cpp/StreamConnections/MockDevice.cpp
Expand Down
Loading