草庐IT

DieWithError

全部标签

c Windows connect() 失败。错误 10049

以下两段代码编译通过,但我在客户端收到了connect()failed错误。(使用MinGW编译)。客户端代码://thankstocs.baylor.edu/~donahoo/practical/CSockets/code/TCPEchoClientWS.c#include#include#include#defineRCVBUFSIZE32//sizeofreceivebuffervoidDieWithError(char*errorMessage);intmain(intargc,char*argv[]){intsock;structsockaddr_inechoServAddr