Example #1
0
        public SubClient(MsgPool <IpcMsg> pool, WarInfo war) : base(war)
        {
            ClientPool = pool;
            poller     = new Poller();

            establish();
        }
Example #2
0
        public RequestClient(WarInfo war, Action <NetMQMessage> real, Action Connected) : base(war)
        {
            handler   = real;
            connected = false;

            establish(Connected);
            Pool = new MsgPool <NetMQMessage>(sendAndRecv);
        }
Example #3
0
 public void Quit()
 {
     connected = false;
     if (reqSock != null)
     {
         reqSock.Disconnect(ConnectingAddress);
         reqSock.Close();
     }
     if (Pool != null)
     {
         Pool.QuitMsgPool();
         Pool = null;
     }
 }
Example #4
0
        public RealClient(WarInfo war)
        {
            this.war = war;

            cached = ClientCached.Instance;
            cached.clear();

            pool   = new MsgPool <IpcMsg>(HandleIpcMsg);
            CliSub = new SubClient(pool, war);

            monitor = new MonitorServer();
            monitor.startMonitor(this.war, HeartBeatDisConn);

            cliMonitor = new SimpleMonitorClient();

            proxyReady = false;
        }