[Interest] QTcpSocket on error Signal not emitted

Abhishek abhishekworld at gmail.com
Tue May 7 10:09:00 CEST 2013


Sorry forgot to mention because of this some times it gives me a warning
"QAbstractSocket::connectToHost() called when already looking up or
connecting/connected " and my ping stop working !


On Fri, May 3, 2013 at 5:22 PM, Thiago Macieira
<thiago.macieira at intel.com>wrote:

> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>


-- 
Abhishek
http://thezeroth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130507/f78ae86c/attachment.html>


More information about the Interest mailing list