[Interest] QTcpSocket on error Signal not emitted

Thiago Macieira thiago.macieira at intel.com
Fri May 3 17:22:46 CEST 2013


On sexta-feira, 3 de maio de 2013 10.25.57, Abhishek wrote:
> Hello,
> I am writing a Tcp client program, which ping server every 3 sec.
> the general behaviour is  :
> 1) client connects to server
> 2) send a identification packet
> 3) server checks the packet and reply accordingly
> *4) server ends the connection. (not client) *
> 
> so I get a error QAbstractSocket::error(QAbstractSocket::SocketError)
> = RemoteHostClosedError
> 
> (I guess its because server ends the connection)
> 
> but when I get this error the QAbstractSocket::disconnected() signal is
> emited
> but this is not emitted for other types of error which is confusing me.

What other errors?

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130503/2750aed1/attachment.sig>


More information about the Interest mailing list