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>();
		}
예제 #2
0
        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>();
        }
예제 #3
0
 public FtpPacketizer()
 {
     _encoding        = Encoding.ASCII;
     _bufferStream    = new MemoryStream(1024);
     _bufferEvaluator = BufferEvaluator.Default;
 }
		public FtpPacketizer()
		{
			_encoding = Encoding.ASCII;
			_bufferStream = new MemoryStream(1024);
			_bufferEvaluator = BufferEvaluator.Default;
		}