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...
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...
AFAIK, the socket will emit the disconnected () signal.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
But if there is yet no socket connections, does it break the "listening" if networks goes up and down every now and then?
That would mean that servers will always have to have someone connected to them otherwise they would stop listening.But if there is yet no socket connections, does it break the "listening"
Makes little sense, does it not?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks