PDA

View Full Version : client/server prog using UDP



rajeshakula
12th July 2011, 10:59
HI,
I wrote a client server program using UDP socket.I am able to send the Datagrams from client to server but unable to pass the acknowledgements from server to client.

mcosta
12th July 2011, 11:43
HI,
I wrote a client server program using UDP socket.I am able to send the Datagrams from client to server but unable to pass the acknowledgements from server to client.

What means?

UDP does not provide acknowledgements support.
To implement it you have to open a "receiving" socket in your client and send aknowledge to it from the server.

You can use the socket used from sending and the server can know how to send using address and port parameters of QUdpSocket::readDatagram()