Results 1 to 2 of 2

Thread: reconnect to server QSocketTCP

  1. #1
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default reconnect to server QSocketTCP

    if the client(QSocketTCP) loses connection with the server, how it can connect? it's necessary to create other instance of QSocketTCP?

    THank you in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: reconnect to server QSocketTCP

    No need for a new socket instance, just call connectToHost() again.

    Cheers,
    _

Similar Threads

  1. QSslSocket reconnect to host
    By Mandymo in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2019, 03:17
  2. Frequent QTcpSocket reconnect
    By giantdragon in forum Newbie
    Replies: 1
    Last Post: 24th May 2011, 13:06
  3. need to reconnect QWebView socket
    By dimril in forum Qt Programming
    Replies: 1
    Last Post: 7th September 2010, 18:28
  4. connect, disconnect and reconnect problem
    By janK in forum Qt Programming
    Replies: 13
    Last Post: 25th August 2010, 19:25
  5. Reconnect problem
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2006, 19:51

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
  •  
Qt is a trademark of The Qt Company.