BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

Closing Client does not remove from Current Clients Connected #51

Closed MJWherry closed 6 months ago

MJWherry commented 5 years ago

I want a limit on amount of clients being able to connect..best way of doing this on the server on the connected event i have a check for client count and if its more than what I want I call disconnect on the client passed into the event to immediately disconnect...but after that (even though my client fails to send any messages and exits) the server connected client count doesn't go down

Maybe add an option on the server for client limit?