Files
dl_old/dlconsole/main.cpp
T
2024-04-23 19:18:45 +08:00

38 lines
529 B
C++

#include <dl.h>
using namespace dl;
//Client client;
//void client_send(void*)
//{
// while (true)
// {
// //client.Send("客户端发送数据");
// std::this_thread::sleep_for(std::chrono::seconds(2));
// }
//}
int main()
{
//String::TestSplit();
Engine::Init();
//Mat::Test();
/*Thread* t = g_thread->Create();
t->Start(client_send, nullptr);*/
Server server;
if (!server.Accept())
{
log_err("服务器accept失败!");
return -1;
}
server.Run();
Client client;
client.Connent();
Engine::Release();
return 0;
}