ゴミ箱
config.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <thread>
4 
5 #include <boost/asio/ip/tcp.hpp>
6 
10 namespace config {
14  class Config {
15  public:
17  unsigned int cpu_num = std::thread::hardware_concurrency();
19  boost::asio::ip::address address = boost::asio::ip::address::from_string("0.0.0.0");
21  unsigned short port = 3333;
22  };
23 }
unsigned int cpu_num
Number of available CPUs.
Definition: config.hpp:17
Definition: config.hpp:10
unsigned short port
Port to use.
Definition: config.hpp:21
Definition: config.hpp:14
boost::asio::ip::address address
IP Address to use.
Definition: config.hpp:19