diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-31 11:57:15 +0200 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-08-31 11:57:15 +0200 |
| commit | 2f1c3293d2c5776c4ecd9b2f1dce66492b15dbdd (patch) | |
| tree | 1c582e4c5715a93c493582b1e01e51bc960d56c0 /network-handler/server.hpp | |
| parent | 1525c5defe3db08c765477003be73c68bb2c3cb7 (diff) | |
| download | cmix-2f1c3293d2c5776c4ecd9b2f1dce66492b15dbdd.tar.gz cmix-2f1c3293d2c5776c4ecd9b2f1dce66492b15dbdd.tar.bz2 cmix-2f1c3293d2c5776c4ecd9b2f1dce66492b15dbdd.zip | |
Split up the client and server parts in a separate network library
Diffstat (limited to 'network-handler/server.hpp')
| -rw-r--r-- | network-handler/server.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/network-handler/server.hpp b/network-handler/server.hpp deleted file mode 100644 index 942cb14..0000000 --- a/network-handler/server.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include <boost/asio/io_service.hpp> - -#include "acceptor.hpp" - -struct ListenSettings { - bool enable_ipv4; - std::string ipv4_inaddr; - bool enable_ipv6; - std::string ipv6_inaddr; - uint16_t port; -}; - -class Server -{ -public: - typedef std::function<void(boost::asio::ip::tcp::socket&& socket)> AcceptHandler; - -private: - ListenSettings const& listen_settings; - - Acceptor v4_acceptor; - Acceptor v6_acceptor; - -public: - Server(boost::asio::io_service& io_service, ListenSettings const& listen_settings, AcceptHandler accept_handler); - -}; |
