aboutsummaryrefslogtreecommitdiff
path: root/network-handler/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-08-29 13:29:30 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-08-29 13:29:30 +0200
commita736abb4e3668771f248e7400a093cb40b5313b7 (patch)
treeccd7b225f1138dc2743ee64aadc7bf11635c9bc9 /network-handler/CMakeLists.txt
parent00ab2cf6add2976b3a4e8f8cc488777ad5c27808 (diff)
downloadcmix-a736abb4e3668771f248e7400a093cb40b5313b7.tar.gz
cmix-a736abb4e3668771f248e7400a093cb40b5313b7.tar.bz2
cmix-a736abb4e3668771f248e7400a093cb40b5313b7.zip
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.
Diffstat (limited to 'network-handler/CMakeLists.txt')
-rw-r--r--network-handler/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
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()