PDA

View Full Version : QTcpServer Recover From Break?



ManuMies
12th November 2010, 12:21
How does QTcpServer work, if user breaks the network connection, is it suppose to recover from it automatically? And is there a way to see, if the network connection is not there anymore?

At least QTcpServer doesn't provide any signals to catch...

high_flyer
12th November 2010, 13:16
AFAIK, the socket will emit the disconnected () signal.

ManuMies
12th November 2010, 13:32
But if there is yet no socket connections, does it break the "listening" if networks goes up and down every now and then?

high_flyer
12th November 2010, 13:44
But if there is yet no socket connections, does it break the "listening"
That would mean that servers will always have to have someone connected to them otherwise they would stop listening.
Makes little sense, does it not?

ManuMies
12th November 2010, 13:48
That would mean that servers will always have to have someone connected to them otherwise they would stop listening.
Makes little sense, does it not?

Good. That's because I'm right now having issue, that every now and then, I'm unable to connect the server. But thanks for the info anyways. :)