aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/server/main/server.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2019-12-08 05:05:52 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2019-12-08 05:05:52 +0300
commit134e9a07773fd52fc575c81b1a5ef3cd24eb35cd (patch)
treed0976ad9e3f629ab288a8dd99412ed497e4105e0 /server/main/server.hpp
parentfix CMakeLists.txt for Visual Studio 2019 (diff)
downloadmath-server-134e9a07773fd52fc575c81b1a5ef3cd24eb35cd.tar.gz
math-server-134e9a07773fd52fc575c81b1a5ef3cd24eb35cd.zip
server: proper integer types
So that VS 2019 doesn't complain.
Diffstat (limited to '')
-rw-r--r--server/main/server.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/main/server.hpp b/server/main/server.hpp
index 5524f88..50d8c7a 100644
--- a/server/main/server.hpp
+++ b/server/main/server.hpp
@@ -6,12 +6,14 @@
#include <boost/asio.hpp>
#include <boost/system/error_code.hpp>
+#include <cstddef>
+
namespace math::server {
class Server {
public:
Server(const Settings& settings);
- Server(unsigned port, unsigned threads);
+ Server(unsigned short port, std::size_t threads);
void run();
@@ -22,7 +24,7 @@ private:
void accept();
void handle_accept(SessionPtr session, const boost::system::error_code& ec);
- const unsigned m_numof_threads;
+ const std::size_t m_numof_threads;
boost::asio::io_context m_io_context;
boost::asio::signal_set m_signals;