Results 1 to 2 of 2

Thread: Frequent QTcpSocket reconnect

  1. #1
    Join Date
    Jan 2011
    Posts
    34
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Frequent QTcpSocket reconnect

    Is it good idea to destroy QTcpSocket-derived object after transferring block of data and create new to transmit next block? Will performance fall comparing to using single socket for transferring all blocks without deletion/creation new connections?

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Frequent QTcpSocket reconnect

    Yes, connection creation (this may be big compared to later), socket creation will have there role to play, I guess reusing the same socket would be an wise idea, unless security come into picture.

Similar Threads

  1. QSslSocket reconnect to host
    By Mandymo in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2019, 03:17
  2. QGLWidget crashes on frequent updates
    By kkk777kkk in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2010, 10:35
  3. need to reconnect QWebView socket
    By dimril in forum Qt Programming
    Replies: 1
    Last Post: 7th September 2010, 18:28
  4. Is QMap efficient in case of frequent read access ?
    By yellowmat in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2006, 08:20
  5. Reconnect problem
    By xgoan in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2006, 19:51

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.