C
cj
I'm writing a TCP/IP server app that will have many simultaneous
connections. The main thread listens for new connections and starts a
thread to handle each requested connection. These are short lived
threads that get a request and return a reply and end.
Can the main thread tell me how many connection threads are currently
running at any given time? I'd like to have a label on the main form to
show how many connections the server is currently servicing. Maybe I'd
put a timer on the form and every 5 seconds or so update the count.
connections. The main thread listens for new connections and starts a
thread to handle each requested connection. These are short lived
threads that get a request and return a reply and end.
Can the main thread tell me how many connection threads are currently
running at any given time? I'd like to have a label on the main form to
show how many connections the server is currently servicing. Maybe I'd
put a timer on the form and every 5 seconds or so update the count.