[Qt-interest] qtcpsocket disconnected with error remotehostclosedconnection automaticly

g2southpark at ovi.com g2southpark at ovi.com
Thu Mar 4 04:08:47 CET 2010


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 ?

thanks very much

--------------------------------------------------------------
Ovi Mail: Simple and user-friendly interface
http://mail.ovi.com





More information about the Qt-interest-old mailing list