I want to know the number of current client connections to an Indy 9 TIdTCPServer (on Delphi 2007)
I can\'t seem to find a property that gives this.
I\'ve tr
How about incrementing / decrementing a counter from OnExecute (or DoExecute if you override that)? That can't go wrong!
OnExecute
DoExecute
If you use InterlockedIncrement and InterlockedDecrement you don't even need a critical section to protect the counter.
InterlockedIncrement
InterlockedDecrement