When can UDP communication be supported

When can XOJO support UDP communication on the Android platform? At present, it can only support TCP.

3 Likes

That is tracked in Issue #77486.

Generally, we don’t speak about when features will arrive. For reference, it took about 7 years after iOS was released for UDP support to appear. I expect Android UDP support will arrive much sooner than that.

2 Likes

can you tell us what is your use case?

In the field of IoT embedded systems, UDP has many applications, such as searching for devices and configuring networks by sending broadcast packets.
Secondly, although UDP itself does not have a retransmission function, it can be implemented by developers and will not block the main program, making it more reliable than TCP.

1 Like

Can XOJO do the same as B4A and use JAR for development, which can speed up development efficiency? Otherwise, if we really need to wait 7 years from the first version of XOJO2023 supporting Android, I can’t imagine how the world will develop in 7 years.

i remember udp can have data loss, it need a checksum and it have no order, it is connectionless.
its faster and i know the use case for multiplayer games in the past.

and will not block the main program

it is maybe the case if you like to process real time input/signals.

i made a heating control with arduino and use a tcp web server to speak with my phone browser.
when i process the tcp data is up to me. i just put this method call in the main loop with other to do’s
basically it read a buffer and push data in output buffer.
the tcp class handle the transfer possibly with interrupts.