Hi,
create an own slot connectionAborted() is nice. But how can I find out inside that method which QTcpSocket instance has called him?
Connecting QTcpSocket::disconnected() to MyServer::connectionAborted() means that all QTcpSocket instances calls the same method.
Which one I should remove?
But I see one chance: In connectionAborted() I can check what QTcpSocket instance has state != SocketState::ConnectedState, then call deleteLater() and remove it from list.
I try it. Thanks.
Bookmarks