Networking send information to client via udp

M

mchl12

Guest
Hello everyone,

I was looking through the documentation for network_send_udp and it said that it was used to send buffers to a SERVER, I was wondering how I would go about sending information from a udp server to a udp client and if you can connect (udp) using the network_connect function (which didn't work when I tested it). Thanks in advance!
 

FrostyCat

Member
UDP is a connectionless protocol, network_connect() is never used with it. And the last time I checked, network_send_udp() works from server to client just fine as long as the source IP and port are correctly determined (i.e. async_load[? 'ip'] and async_load[? 'port']).
 
M

mchl12

Guest
Thank you very much! I didn't think of using async_load[? "ip"] and tried to use the ip of the server for that again... But I got it working now.
 
Top