View Full Version : QSocketTCP Is connected
hassinoss
11th February 2014, 21:02
How can we know if QSocketTCP is connected to server TCP or no?
Thank you in advance
ChrisW67
11th February 2014, 23:03
If you have called QAbstractSocket::connectToHost() and received a connected() signal (and neither QAbstractSocket::error() nor QAbstractSocket::disconnected() signals) then you are connected.
wysota
12th February 2014, 07:29
You can always query the socket state using QAbstractSocket::state().
hassinoss
13th February 2014, 16:33
thank you for your answer
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.