Exemple #1
0
        public AbstractClient(int subscribePort)
        {
            listeningPort = subscribePort;
            Deamon deamon = new Deamon(subscribePort, this);

            pThread = new Thread(new ThreadStart(deamon.run));
            pThread.Start();
        }
Exemple #2
0
 public AbstractClient(string subscribeHost, int subscribePort)
 {
     listeningHost_ = subscribeHost;
     listeningPort_ = subscribePort;
     deamon_        = new Deamon(subscribeHost, subscribePort, this);
     pThread_       = new Thread(new ThreadStart(deamon_.run));
     deamon_.setThread(pThread_);
     pThread_.Start();
 }