How to make a UDP server to sent and recieve data?
-
Good nigth I've been reading the documentation and some post at the forum related to UDP networks, and I already compile the examples of the page, but I can't make a UDP server that sends/recieves data form/to an specific IP address at an specific port, does anybody could help with this? or tell where to look?
Thank you, any help will be appreciated.
-
@ChristianMontero This page would be a good place to start:
http://doc.qt.io/qt-5/qtnetwork-programming.htmlWhat kind of issues are you having with the UDP server? Maybe I can help figure out why it's not working for you.
-
Use QUdpSocket to send and receive datagrams between your server and peers.
-
@ambershark Thank you very much for your help, now it's working, it seems like I was passing the IP argument incorrectly, now I know that I have to send this parameter inside a QT function. thanks!