lib/server.cpp
// Run the asio loop (called from main thread)
Run the asio loop (called from main thread)
Run the asio loop ( called from main thread )
void ServerImpl::run(uint16_t port) {
    m_server.listen(port);
	m_server.start_accept();
    try {
        m_server.run();
    } catch (const std::exception & e) {
        LOGGER_WRITE(Logger::DEBUG,e.what());
    } catch (websocketpp::lib::error_code e) {
        LOGGER_WRITE(Logger::DEBUG,e.message());
    } catch (...) {
        LOGGER_WRITE(Logger::DEBUG,"other exception");
    }
}
void ServerImpl :: run ( uint16_t port ) { m_server . listen ( port ) ; m_server . start_accept ( ) ; try { m_server . run ( ) ; } catch ( const std :: exception & e ) { LOGGER_WRITE ( Logger :: DEBUG , e . what ( ) ) ; } catch ( websocketpp :: lib :: error_code e ) { LOGGER_WRITE ( Logger :: DEBUG , e . message ( ) ) ; } catch ( ... ) { LOGGER_WRITE ( Logger :: DEBUG , " " ) ; } }
Run the asio loop (called from main thread)
Run the asio loop ( called from main thread )
// listen on specified port // Start the server accept loop // Start the ASIO io_service run loop