public MultiplexConnectionInputPump(BufferRead bufferRead, MultiplexConnectionFactoryHandler connectionFactory, object callbackState) { this.callbackState = callbackState; this.bufferRead = bufferRead; this.connectionFactory = connectionFactory; this.connections = new Dictionary<int, MultiplexedConnection>(); this.inputBuffer = new byte[65536]; this.preambleBuffer = new byte[sizeof(int) + sizeof(ushort)]; this.stopInput = new ManualResetEvent(false); }
public MultiplexConnectionInputPump(BufferRead bufferRead, MultiplexConnectionFactoryHandler connectionFactory, object callbackState) { this.callbackState = callbackState; this.bufferRead = bufferRead; this.connectionFactory = connectionFactory; connections = new Dictionary <int, MultiplexedConnection>(); inputBuffer = new byte[65536]; preambleBuffer = new byte[sizeof(int) + sizeof(ushort)]; stopInput = new ManualResetEvent(false); }
public MultiplexConnectionInputPump(BufferRead bufferRead, MultiplexConnectionFactoryHandler connectionFactory, object callbackState) { this.callbackState = callbackState; this.bufferRead = bufferRead; this.connectionFactory = connectionFactory; connections = new Dictionary <int, MultiplexedConnection>(); inputBuffer = new byte[65536]; // Each frame is prefixed with a 32-bit connectionId and a 16-bit length value. preambleBuffer = new byte[sizeof(int) + sizeof(ushort)]; stopInput = new ManualResetEvent(false); }