Esempio n. 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);
        }
Esempio n. 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);
 }