PDA

View Full Version : QTcpServer stop listening



matteo.ceruti
31st August 2012, 10:43
Hi,
I have a QTcpServer listening on port 0xBBBB (lpTcpServer->listen(QHostAddress::Any,0xBBBB);)
When there is the newConnection I need to stop other connctions?
Is possible to stop the listening (I can't use stop() function because if I stopped its I can't send and receive data).

Thanks
Teo

Qtonimo
31st August 2012, 11:19
Hold your connections in a Qt containter.
Every Connection has its own socket. And then you can just call socket->disconnect at the serverside....