#include "BoostLog.h" #include "IoContext.h" #include "Listener.h" #include "SharedState.h" int main(int argc, char const *argv[]) { using namespace boost::asio::ip; boost::log::initialize("/data/sdcard/logs/VoucherVerifyServer", "/data/sdcard/logs"); auto ioContext = Amass::Singleton::instance(std::thread::hardware_concurrency()); auto sharedState = Amass::Singleton::instance(*ioContext->ioContext()); auto listener = std::make_shared(*ioContext->ioContext(), tcp::endpoint{tcp::v4(), 3392}, sharedState); listener->startAccept(); ioContext->run(); return 0; }