Computers do not connect using udp. You just send data to an ip and port. UDP is connectionless.
I don't know the gdk version, but I made working programs in dbpro using barnski's winsock.
The method I used in pseudo for sending:
-Start winsock
-Setup a port for sending
-Setup a port for receiving
//different ones, because sent data remains in the reserved memory
//of the channel's (barnski says channel for sockets) adress until
//overwrite or further deletion, so appeared for download too.
-Make as much memory, you need for your actual data to be sent, fill with actual data, store starting adress and size.
(For UDP, the maximum transmission unit in barnski's plugin is 8192 bytes for a single datagram)
-Copy it to the channel's memory
-set the destination (IP and port)
-Send UDP message
-Delete the reserved memory and it's data, if you don't need that later.
For receive, I used that method:
-check if theres data waiting
-if theres data, receive, then check it's length
-Get the sender IP and port, I store it in a dynamic array
-reserve memory, copy channel data, store adress and size
-repeat until theres data waiting
//(I work with the stored data later, mainly because
//I tried to build the reliable system on top of the UDP)
Sorry for the pseudo, but proper c++ code is beyond my current knowledge. I belive that Barnski's winsock works the same way as in dbpro, so it may help you.
No place like 127.0.0.1 .