See all open connections in my tcp server.



  • On my tcp server I want to be able to see all open connections in order to have a list of all online users.

    Note to the people that have helped me develop this until now:
    This has nothing to do with the log in process. I did manage to successfully create sessions for any user that might log in. The sessions though are active for about an hour, during which a user might not be online in the server.

    Question:
    How can I get all open connections on my TCP server?



  • @ealione said:

    How can I get all open connections on my TCP server?

    You need to do this in the code??
    In that case you have to store the list on connections in some containers (QVector, QMap, ...)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.