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.macie...@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@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > > -- Abhishek http://thezeroth.net
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest