예제 #1
0
        public ConnectionPool(ServerTransport server)
        {
            _buffer      = new Connection[server.MaxConnections];
            _idGenerator = new IdGenerator(int.MaxValue);

            for (int i = 0; i < _buffer.Length; i++)
            {
                _buffer[i] = new Connection(server);
            }
        }
예제 #2
0
 public Connection(ServerTransport server)
 {
     SendBuffer    = new MessageBuffer(server.SendBufferSize);
     ReceiveBuffer = new MessageBuffer(server.ReceiveBufferSize);
 }