用iret保存各种初始化网络接口函数的返回状态
例如:connect()等函数的返回状态 。0正常,-1出错。
说明吝啬一点:unsigned short int iret ; 结果就出问题了。 -1成了65535了。
改成:int iret; 结果就正确了。
用iret保存各种初始化网络接口函数的返回状态
例如:connect()等函数的返回状态 。0正常,-1出错。
说明吝啬一点:unsigned short int iret ; 结果就出问题了。 -1成了65535了。
改成:int iret; 结果就正确了。
转载于:https://www.cnblogs.com/johnphan/archive/2010/02/22/9191277.html