10038套接字错误

编程入门 行业动态 更新时间:2024-10-28 18:33:25
本文介绍了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套接字错误

本文发布于:2023-10-24 08:17:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1523417.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!