Exemplo n.º 1
0
    public ReceiverDispatcher (Ice.Endpoint e, MessageRequestDelegate mrd)
    {
      _e = e;
      _r = e.ProtocolReader;
      _requestHandler = mrd;
      _valid = true;

      // if the endpoint is connected and this endpoint isn't incoming,
      // then we need to wait for the validate message before
      // sending any requests
      if (_e.HasConnection && !_e.Incoming)
        _valid = false;

      _outstandingRequests = new Hashtable();
      _notifiedRequests = new Hashtable();

      _readerThread = new Thread(new ThreadStart (Reader));
      _readerThread.IsBackground = true;
      _readerThread.Start();
    }
Exemplo n.º 2
0
        public ReceiverDispatcher(Ice.Endpoint e, MessageRequestDelegate mrd)
        {
            _e = e;
            _r = e.ProtocolReader;
            _requestHandler = mrd;
            _valid          = true;

            // if the endpoint is connected and this endpoint isn't incoming,
            // then we need to wait for the validate message before
            // sending any requests
            if (_e.HasConnection && !_e.Incoming)
            {
                _valid = false;
            }

            _outstandingRequests = new Hashtable();
            _notifiedRequests    = new Hashtable();

            _readerThread = new Thread(new ThreadStart(Reader));
            _readerThread.IsBackground = true;
            _readerThread.Start();
        }
Exemplo n.º 3
0
 protected virtual void CreateProtocolReader() {
   _pr = new ProtocolReader (this.Stream);
 }
Exemplo n.º 4
0
 protected virtual void CreateProtocolReader()
 {
     _pr = new ProtocolReader(this.Stream);
 }