AK.F1.Timing.Server.TcpServer.TcpServer C# (CSharp) Method

TcpServer() public method

Initialises a new instance of the AK.F1.Timing.Server.TcpServer class.
/// Thrown when or is . /// /// Thrown when is not positive. ///
public TcpServer ( IPEndPoint endpoint, ISocketHandler handler, int backlog = 50 ) : System
endpoint System.Net.IPEndPoint The remote end point to listen on.
handler ISocketHandler The client connection handler.
backlog int The accept connection backlog.
return System
        public TcpServer(IPEndPoint endpoint, ISocketHandler handler, int backlog = 50)
        {
            Guard.NotNull(endpoint, "endpoint");
            Guard.NotNull(handler, "handler");
            Guard.InRange(backlog > 0, "backlog");

            _endpoint = endpoint;
            _handler = handler;
            _connectionBacklog = backlog;
        }