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
365 stars 108 forks source link

SimpleTcpServer.Stop() waits until all underlying listeners have clos… #5

Closed aquamoth closed 8 years ago

aquamoth commented 8 years ago

…ed their TcpListeners.

To do this the TcpListener is wrapped in a TcpListenerEx which only purpose is to publish the protected property "Active".

This closes issue #4

I've also replaced System.Text.ASCIIEncoding.UTF8 with System.Text.Encoding.UTF8, but that's a non-functional thingy.