public BlockingSocketProcessor(string host, int port, IProtocolListener protocolListener)
 {
     _host             = host;
     _port             = port;
     _protocolListener = protocolListener;
     _byteChannel      = new ByteChannel(this);
 }
        public AmqpChannel(IByteChannel byteChannel, IProtocolDecoderOutput decoderOutput)
        {
            _byteChannel   = byteChannel;
            _decoderOutput = decoderOutput;
            _syncLock      = new object();

            AMQProtocolProvider   protocolProvider = new AMQProtocolProvider();
            IProtocolCodecFactory factory          = protocolProvider.CodecFactory;

            _encoder = factory.Encoder;
            _decoder = factory.Decoder;
        }
示例#3
0
 public ByteChannel(IByteChannel lowerChannel)
 {
     _lowerChannel = lowerChannel;
 }
示例#4
0
 public ByteChannel(IByteChannel lowerChannel)
 {
     _lowerChannel = lowerChannel;
 }