PDA

View Full Version : QUdpSocket doubt



krsree
8th November 2013, 04:24
Hi all..

I have created a QUdpSocket, bind with an ip address and port 1100, for transmission and reception. Transmission and Reception is working fine. But

1) It is showing always error code "Unknown Socket Error". Why..??

2) I have written connect signals error, disconnected, abouttoclose, etc in the program. But when we unplug the cable from the socket, none of them is invoking. I have tried to check isOpen, bytesavailable also.

Anybody please tell me how we can implement this..? Its urgent..

wysota
8th November 2013, 08:23
1) It is showing always error code "Unknown Socket Error". Why..??
Because there is no "There is no error" enum. Check the error only if there are errors.


2) I have written connect signals error, disconnected, abouttoclose, etc in the program. But when we unplug the cable from the socket, none of them is invoking. I have tried to check isOpen, bytesavailable also.
Why would anything be invoked here? Unpluging the cable does not influence a UDP socket in any way.