Results 1 to 5 of 5

Thread: QTcpServer Recover From Break?

  1. #1

    Question QTcpServer Recover From Break?

    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...

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTcpServer Recover From Break?

    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.

  3. #3

    Default Re: QTcpServer Recover From Break?

    But if there is yet no socket connections, does it break the "listening" if networks goes up and down every now and then?

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTcpServer Recover From Break?

    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?
    ==========================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.

  5. #5

    Default Re: QTcpServer Recover From Break?

    Quote Originally Posted by high_flyer View Post
    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.

Similar Threads

  1. Replies: 0
    Last Post: 7th August 2010, 10:55
  2. How to recover Space after build
    By SandsofTime in forum Installation and Deployment
    Replies: 2
    Last Post: 16th February 2010, 04:30
  3. Recover .ui file
    By Macok in forum Qt Programming
    Replies: 2
    Last Post: 28th February 2009, 15:41
  4. Problem to recover an object via a QAction
    By Potch in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2008, 12:19
  5. Replies: 1
    Last Post: 18th June 2006, 11:12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.