PDA

View Full Version : Frequent QTcpSocket reconnect



giantdragon
24th May 2011, 12:52
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?

Santosh Reddy
24th May 2011, 13:06
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.