void run(uint16_t port) {
// listen on specified port
m_server.listen(port);
// Start the server accept loop
m_server.start_accept();
// Start the ASIO io_service run loop
try {
thread t_thread(bind(&server::run, &m_server));
t_thread.join();
//m_server.run();
}
catch (const std::exception & e) {
std::cout << e.what() << std::endl;
}
}