服务器和客户端都在本机。
服务端用CAsyncSocket建立了,用8000端口,应该没问题。
客户端执行socket.Connect("127.0.0.1",8000)时就报10038号错,Msdn上这样解释的:
WSAENOTSOCK 
(10038) 
Socket operation on non-socket. 
An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid. 
怎么搞的?高手们