更新时间:2022-03-10 23:42:07
应该不是
Shouldn''t it be
CSocket server;
server.Create(PRE_AGREED_PORT);
server.Listen();
CSocket client;
server.Accept(client);
您是否尝试过使用Visual Studio附带的调试器?在大多数情况下,单步执行代码会向您显示您的实际问题.
Have you tried using the debugger that comes with Visual Studio? Most of the time, stepping through the code will reveal your actual problem to you.