[Qt-interest] qtcpsocket disconnected with error remotehostclosedconnection automaticly
Thiago Macieira
thiago at kde.org
Thu Mar 4 07:46:53 CET 2010
Em Quinta-feira 4. Março 2010, às 04.08.47, g2southpark at ovi.com escreveu:
> hi ,
> I'm trying to write a client using qtcpsocket to a server, the server is
> designed such that it only accepts protocol defined data. If unexpected
> data accepted, it will close the connection automaticly.
>
> now, when I create the QTcpSocket, it then turns into connected state
> succesffuly, but after 0.1s, it will received a socket error of
> RemoteHostClosedConnection.
>
> The server is ok, so the problem is , what will qtcpserver send after it's
> in connected state that we don't know ? anybody can anserw this ?
QTcpServer and QTcpSocket don't send anything that you don't ask it to send.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100304/00d684b0/attachment.bin
More information about the Qt-interest-old
mailing list