lewaimai_pathplanning_windows.cpp 386 B

123456789101112131415161718192021222324252627
  1. #include "pch/pch.h"
  2. #include "network/CServer.h"
  3. int main()
  4. {
  5. //初始化日志
  6. CLewaimaiLog log;
  7. log.Init();
  8. //读取配置文件
  9. CConfigReader::ReadConfigFile();
  10. try
  11. {
  12. boost::asio::io_context io_context;
  13. using namespace std;
  14. CServer s(io_context, 9001);
  15. io_context.run();
  16. }
  17. catch (std::exception& e)
  18. {
  19. std::cerr << "Exception: " << e.what() << "\n";
  20. }
  21. }