Hi there,
have you ever had problems with the QHostInfo::fromName method?
I have tried my code in three pc. Two of them were ok but the last one (a laptop), when connected with a cable, gives a problem: the thread were it is started blocks itself for at least one minute. After that, I bind a QUdpSocket successfully but the readyRead signal is never emitted when a packet arrives.
If I remove the cable and restart the app, it works (using a simulator).
I repeat, the code works with other machines.
Any hints?
Thanks
Edit:
the readyread triggers only using 127.0.0.1 but not with the eth0 address (192.168.x.x) of the machine.
Bookmarks