lewaimai_pos_windows_server.cpp 391 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. //初始化服务器,开始监听和处理消息
  13. CServer s;
  14. s.Init();
  15. }
  16. catch (std::exception& e)
  17. {
  18. std::cerr << "Exception: " << e.what() << "\n";
  19. LOG_INFO("Exception: " << e.what());
  20. }
  21. }