锐英源软件
第一信赖

精通

英语

开源

擅长

开发

培训

胸怀四海 

第一信赖

当前位置::锐英源 / 英语翻译 / C#可扩展UDP服务器 / UDP掉线重连
服务方向
人工智能数据处理
人工智能培训
kaldi数据准备
小语种语音识别
语音识别标注
语音识别系统
语音识别转文字
kaldi开发技术服务
软件开发
运动控制卡上位机
机械加工软件
软件开发培训
Java 安卓移动开发
VC++
C#软件
汇编和破解
驱动开发
联系方式
固话:0371-63888850
手机:138-0381-0136
Q Q:396806883
微信:ryysoft

UDP掉线重连

Hi,嗨,

I'm trying to do something similar, in a nutshell send data via UDP over GPRS with a listener connecting to multiple endpoints .

我想要做到的是使用UDP通过GPRS将数据发送到连接多个端点的侦听器。

The issue(s) I'm having are dealing with connection dropouts, if the network connection fails between server (listener) and endpoint (client), the listener throws a wobblie (especially if in the middle of sending a message to the client).I just can't find clean method to resolve.

我正在处理的连接有多个问题,如果网络连接的服务器(监听器)和端点(客户端)之间发生故障,监听者抛出wobblie(特别是如果在发送消息到客户端的中间),我找不到正确的方法来解决。

Example 1 : 实施例1:
Server Listening and a connected client looses connection. The client can reconnect and sends UDP messages though the listener 'OnReceive' event doesn't receive the message.
服务器侦听和连接的客户端失去连接。客户端可以重新连接和发送UDP消息,尽管监听者的OnReceive事件不会收到消息。
Example 2 :实施例2:
Server (Listener) sends out a UDP message, though the client connection drops out. The Listener falls over in a heap with ascyn issues.
服务器(侦听)发送一个UDP消息,虽然客户端连接掉线。侦听器会落入ascyn问题成堆的麻烦。
Any ideas would be muchly appreciated? 任何想法都可以告诉我,谢谢!

Hi gemmtech, 嗨gemmtech,

I am not getting exact problem what you are facing. if possible can you share the pace of code where you listen and send.

我没有你所面对的具体问题。如果可以的话,你可以分享一下你的代码。

How much data your are sending. 你有多少数据发送。

listener throws a wobblie can you give me what error you are getting. The udp is connection less so you should not face any error. Hope you are using Socket class for connecting UDP. are you using Async functionality of the Socket ?

你能告诉我,监听者抛出wobblie时你得到的什么错误。 UDP会连接成功的,只要你没有任何错误。希望您在使用Socket类连接UDP。您使用的是套接字的Async功能吗?

The Listener falls over in a heap with ascyn issues if you are using the UDP that should not be the case because the connection is one way. You just need to send data or Receive the data. if i can see the code than i can tell you properly.

如果您使用的是UDP,不应该是这样,因为连接只有一种方式。你需要发送数据或接收数据。如果我可以看到代码比我就能够正确地告诉你。

友情链接
版权所有 Copyright(c)2004-2021 锐英源软件
公司注册号:410105000449586 豫ICP备08007559号 最佳分辨率 1024*768
地址:郑州大学北校区院(文化路97号院)内