10038套接字错误 [英] 10038 socket error

查看:255
本文介绍了10038套接字错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有解决10038服务器错误的解决方案?我已经用c ++完成了编码;
服务器可以正常运行10到12个小时,但突然出现10038套接字错误

Is there any solution for 10038 server error .i have done coding in c++; the server runs fine 10 to 12 hours but sudenly it gives 10038 socket error

推荐答案

没有看到您的代码:您描述的症状听起来像是您正在泄漏内存/资源,即您忘记了释放/删除正在分配的对象。这也可能是时间问题。我建议您发布(缩减的)代码。

Without seeing your code: the symptom you describe sounds like you are leaking memory/resources, i.e. you are forgetting to free/delete objects you are allocating. It could also be a timing issue. I suggest you post your (cut-down) code.


10038(WSAENOTSOCK):在非套接字上进行套接字操作。尝试对
a套接字以外的对象执行
操作。套接字句柄
参数未引用有效的
套接字,或者对于select来说,
fd_set的成员无效。

10038 (WSAENOTSOCK): Socket operation on nonsocket. 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.

这篇关于10038套接字错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆