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); } }
public Connection(ServerTransport server) { SendBuffer = new MessageBuffer(server.SendBufferSize); ReceiveBuffer = new MessageBuffer(server.ReceiveBufferSize); }