示例#1
0
        private void WriteBuffer(IoBuffer buf)
        {
            IWriteRequest writeRequest;

            if (_authenticated)
            {
                writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf);
            }
            else
            {
                writeRequest = new DefaultWriteRequest(buf);
            }
            _currentNextFilter.FilterWrite(_session, writeRequest);
        }
示例#2
0
 private void WriteBuffer(IoBuffer buf)
 {
     IWriteRequest writeRequest;
     if (_authenticated)
         writeRequest = new SslFilter.EncryptedWriteRequest(_currentWriteRequest, buf);
     else
         writeRequest = new DefaultWriteRequest(buf);
     _currentNextFilter.FilterWrite(_session, writeRequest);
 }