INVALID_SOCKET的值不是-1,原因参考basetsd.h和WinSock2.h: typedef _W64 unsigned int UINT_PTR, *PUINT_PTR; typedef UINT_PTR SOCKET; #define INVALID_SOCKET (SOCKET)(~0) (~0)的值为-1; (SOCKET)(~0)的值为:十六进制0xFFFFFFFF(十进制4294967295)。 To abort a connection, release a socket ha...