Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void Init(TcpServerParams serverParams)
 {
     Init(new TcpServerConnectionFactory <TConnection, TCoding, TPacket>(), serverParams);
 }