刚开始学习《windows网络编程》第二版中的第一个例子(tcpserver 这个),运行出错,
屏幕显示如下:
We are awaiting a connection on port 5150.
accept failed with error 10014
Press any key to continue
在你的代码中加入
ClientAddrLen = sizeof(ClientAddr);
就OK了。
刚开始学习《windows网络编程》第二版中的第一个例子(tcpserver 这个),运行出错,
屏幕显示如下:
We are awaiting a connection on port 5150.
accept failed with error 10014
Press any key to continue
在你的代码中加入
ClientAddrLen = sizeof(ClientAddr);
就OK了。