From a736abb4e3668771f248e7400a093cb40b5313b7 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Mon, 29 Aug 2016 13:29:30 +0200 Subject: Adds the Acceptor and Client class. The acceptor combines the endpoint and acceptor to reduce clutter in NetworkHandler class. The client will handle the connection for the network handler for every separate client. The networkhander now has a std::list of Client, to keep track and ownership of all the Clients. --- network-handler/CMakeLists.txt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'network-handler/CMakeLists.txt') diff --git a/network-handler/CMakeLists.txt b/network-handler/CMakeLists.txt index 9f3366c..12898dc 100644 --- a/network-handler/CMakeLists.txt +++ b/network-handler/CMakeLists.txt @@ -4,14 +4,23 @@ find_package(Boost COMPONENTS system program_options REQUIRED) add_executable(network-handler main.cpp networkhandler.hpp networkhandler.cpp + acceptor.hpp acceptor.cpp + client.hpp client.cpp ) target_compile_options(network-handler - PRIVATE "-std=c++11" + PRIVATE "-std=c++14" ) target_link_libraries(network-handler PRIVATE Boost::boost PRIVATE Boost::program_options PRIVATE Boost::system -) \ No newline at end of file +) + +if(WIN32) + target_link_libraries(network-handler + PRIVATE wsock32 + PRIVATE ws2_32 + ) +endif() -- cgit v1.2.3-70-g09d2