精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
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: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,不应该是这样,因为连接只有一种方式。你需要发送数据或接收数据。如果我可以看到代码比我就能够正确地告诉你。