套接字编程中的问题 [英] Problem in socket programming

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

问题描述


我们已经开发了一个邮件服务器.服务器连接了多个网络.因此,服务器应侦听所有IP.因此,我们正在遍历所有IP的循环.但是我们面临以下错误:

System.Net.Sockets.SocketException:阻塞操作被对WSACancelBlockingCall的调用中断了.
并且由于该错误,服务器仅在循环中的第一个IP上侦听.那么,谁能详细解释为什么会出现此错误,以及应该怎么做才能解决此错误呢?







谢谢和问候,
Patel Riddhi

Hi,
We have developed a mail server. Server is connected with more than one network. So the server should listen on all the IPs. So we are iterating through the loop of all the IPs. But we are facing the following error :

System.Net.Sockets.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall

And because of this error, the server is listening only on the first IP in the loop. So can anyone explain in detail why is this error coming and what should be done to resolve this error??







Thanks and Regards,
Patel Riddhi

推荐答案

一个问题可能是万一您将被动端口设置为1400-1410.尝试在路由器中将其打开.
One problem might be in case you the passive port set 1400 - 1410. Try opening it up in the router.


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

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