Qt World Summit: Submit your Presentation

Int pendingConnections

  • Hello good people of the internet :D

    I was wondering if there is some way to tell the number of incommingConnections on a QTCPServer. I know there is a way to set max pending connections but i couldn't find anything about asking for the number of pending connections.

    Thank you

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    The only way I see to do it currently would be to subclass QTCPServer and reimplement incomingConnection and nextPendingConnection and count yourself.

    Hope it helps

  • Thank you that helps. I know how to do it but decided its not crucial for my application and gets dropped to the end of the list.

Log in to reply