0

Closed

TcpServer - Add the option to execute asynchronously.

description

Currently TcpServer executes in a dedicated thread.
We need to add the Property UseDedicatedThread.
The default will be true.
When UseDedicatedThread is false the process that listens for new connections will accept new connections asynchronously.

If UseDedicatedThread is changed after the server is running an InvalidOperationException will be raised.

Implemented:
It was resolved adding the property AcceptConnectionsAsynchronously (defaulted to false)
When AcceptConnectionsAsynchronously is true the method TcpListener.AcceptSocketAsync() is used for accepting new connections
when AcceptConnectionsAsynchronously is false TcpListener.AcceptSocket() is used.
Closed Sep 21, 2013 at 1:41 PM by valcarcel

comments