lewaimai_pathplanning_windows.cpp 362 B

12345678910111213141516171819202122232425
  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. CServer s(io_context, 9001);
  14. io_context.run();
  15. }
  16. catch (std::exception& e)
  17. {
  18. std::cerr << "Exception: " << e.what() << "\n";
  19. }
  20. }