Hope this can help.
Attached an UDP_Server script and UDP_Client. I've added both sources and bundled exe
Tried to keep as simple as possible to concentrate only on send/receive
UDP_Serveron start it will open UDP port 40000 on localhost 127.0.0.1 an wait for receiving some data
It will set a timeout of 10 seconds but will loop for next receive
Leave the server running waiting some data
UDP_Clienton start will send some data to localhost 127.0.0.1 port 40000
After sending will exit
You can run client many times to send some new data
Attention
windows firewall may interfere and scripts must be allowed to send/receive data
UDP Client is the one sending data
UPD Server is the one receiving data
PS:
thinBasic help UDP_OpenServer is wrong because it reported UDP_Open instead of UDP_OpenServer
I will fix next release.
Bookmarks