| 12345678910111213141516171819202122232425 |
- #include "pch/pch.h"
- #include "network/CServer.h"
- int main()
- {
- //初始化日志
- CLewaimaiLog log;
- log.Init();
- //读取配置文件
- CConfigReader::ReadConfigFile();
- try
- {
- boost::asio::io_context io_context;
- CServer s(io_context, 9001);
- io_context.run();
- }
- catch (std::exception& e)
- {
- std::cerr << "Exception: " << e.what() << "\n";
- }
- }
|