public void Notify()
        {
            if (_prox == null)
                _prox = ProxyConnection.Instance;

            SocketException se = null;
            String result = "";

            _prox.Connect(_prox.ReadOnlyClient, out se);

            while (_prox.ReadOnlyClient.Connected)
            {
                _prox.DoWhenConnected(_prox.ReadOnlyClient, Behavior.ReadOnly, se, out result);
                Console.WriteLine(result);
            }

            _prox.ReadOnlyClient.Close();
        }
Beispiel #2
0
        public void Notify()
        {
            if (_prox == null)
            {
                _prox = ProxyConnection.Instance;
            }

            SocketException se     = null;
            String          result = "";

            _prox.Connect(_prox.ReadOnlyClient, out se);

            while (_prox.ReadOnlyClient.Connected)
            {
                _prox.DoWhenConnected(_prox.ReadOnlyClient, Behavior.ReadOnly, se, out result);
                Console.WriteLine(result);
            }

            _prox.ReadOnlyClient.Close();
        }