public TcpPacketizer(IBufferManager bufferManager) { if(bufferManager == null) throw new ArgumentNullException("bufferManager"); _headBuffer = new byte[HEAD_LENGTH]; _bufferManager = bufferManager; _bufferEvaluator = BufferEvaluator.Default; _bufferStates = new Dictionary<long, BufferState>(); }
public TcpPacketizer(IBufferManagerSelector bufferSelector) { if (bufferSelector == null) { throw new ArgumentNullException("bufferSelector"); } _headBuffer = new byte[HEAD_LENGTH]; _bufferSelector = bufferSelector; _bufferEvaluator = BufferEvaluator.Default; _bufferStates = new Dictionary <long, BufferState>(); }
public FtpPacketizer() { _encoding = Encoding.ASCII; _bufferStream = new MemoryStream(1024); _bufferEvaluator = BufferEvaluator.Default; }