I've had some success getting QUdp servers and clients to talk to each other.
But for some reason, when I call this code:
writeDatagram( buffer, host_address, port_number );
this->waitForReadyRead( 5000 );
while ( this->hasPendingDatagrams() == true ) {
cout << "received a response!" << endl;
}
writeDatagram( buffer, host_address, port_number );
this->waitForReadyRead( 5000 );
while ( this->hasPendingDatagrams() == true ) {
cout << "received a response!" << endl;
}
To copy to clipboard, switch view to plain text mode
The server sees the buffer (and netcat can see it also), but the client never sees the response.
I have gotten a response before (when using a QUdpSocket server), but for some reason it doesn't seem to see the response when I use a scheme server.
Using netcat and a small example, it looks like the scheme server is sending a response, but the QUdpSocket isn't detecting there is something to read.
Any suggestions?
Bookmarks