[Qt-interest] QTcpSocket and readRead() signal
Vedran Furač
vedranf at vedranf.mine.nu
Wed May 12 13:41:48 CEST 2010
Hi all,
I'm sending some data to the client and after all the data is sent I
send few bytes to mark the end and close the socket. On the client I
receive all data and close the socket after the receiving the end marker
bytes. Then something strange happens, readyRead() signal for that
socket is emitted (again) and slot is called. In the slot I check for
the socket state and see it's in UnconnectedState and, as expected,
bytesAvailable() returns 0. Any idea on why would the readyRead() be
emitted when the socket is closed and nothing is sent to it?
Regards,
Vedran
More information about the Qt-interest-old
mailing list