public void Init(TcpServerConnectionFactory <TConnection, TCoding, TPacket> connFacotry, TcpServerParams serverParams) { Check.Require(connFacotry != null); Check.Require(serverParams != null); Params = serverParams; ConnectionFactory = connFacotry; _dispatcher = new Dispatcher(this, connFacotry); }
public void Init(TcpServerParams serverParams) { Init(new TcpServerConnectionFactory <TConnection, TCoding, TPacket>(), serverParams); }