M mtd Member Apr 19, 2019 #1 Helllo; I used this code for data send with UDP protocol. its work and i recive data with host. But I closed Host application, and sender code result not change same read logs ("packet send") How can i check send status? Wemos board code: Code: Copy If udp.BeginPacket(sip,54321) Then udp.Write("Returns-") Dim x As String x=Rnd(100,999) Log(x) udp.Write(x) If udp.SendPacket Then Log("packet send") Else Log("Error") End If Else Log("Service Problems") End If
Helllo; I used this code for data send with UDP protocol. its work and i recive data with host. But I closed Host application, and sender code result not change same read logs ("packet send") How can i check send status? Wemos board code: Code: Copy If udp.BeginPacket(sip,54321) Then udp.Write("Returns-") Dim x As String x=Rnd(100,999) Log(x) udp.Write(x) If udp.SendPacket Then Log("packet send") Else Log("Error") End If Else Log("Service Problems") End If
Erel B4X founder Staff member Licensed User Longtime User Apr 20, 2019 #2 There isn't any other information available. You never know with UDP whether the sent packet was received (it is a connectionless protocol). Upvote 0
There isn't any other information available. You never know with UDP whether the sent packet was received (it is a connectionless protocol).
M mtd Member Apr 22, 2019 #3 Erel said: There isn't any other information available. You never know with UDP whether the sent packet was received (it is a connectionless protocol). Click to expand... Ok. thank you. UDP is one way ticket Upvote 0
Erel said: There isn't any other information available. You never know with UDP whether the sent packet was received (it is a connectionless protocol). Click to expand... Ok. thank you. UDP is one way ticket
tigrot Well-Known Member Licensed User Longtime User Apr 23, 2019 #4 I never use UDP, TCP is better, generates more traffic, but it's a lot safer. I connect, send info and if no other activity is needed, sconnect. Protocolo takes care of anything. Upvote 0
I never use UDP, TCP is better, generates more traffic, but it's a lot safer. I connect, send info and if no other activity is needed, sconnect. Protocolo takes care of anything.