Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. See all open connections in my tcp server.
Forum Update on Monday, May 27th 2025

See all open connections in my tcp server.

Scheduled Pinned Locked Moved General and Desktop
tcptcp server
2 Posts 2 Posters 944 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ealione
    wrote on 16 Apr 2015, 10:08 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mcosta
      wrote on 16 Apr 2015, 10:51 last edited by
      #2

      @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, ...)

      Once your problem is solved don't forget to:

      • Mark the thread as SOLVED using the Topic Tool menu
      • Vote up the answer(s) that helped you to solve the issue

      You can embed images using (http://imgur.com/) or (http://postimage.org/)

      1 Reply Last reply
      0

      1/2

      16 Apr 2015, 10:08

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved