Пример #1
0
 public void AdminLoop()
 {
     this._adminlistener.Start ();
     while (true) {
         Communicator c = new Communicator (this._adminlistener.AcceptTcpClient ());
         this.AdminThread (c);
     }
 }
Пример #2
0
 public void AdminThread(Communicator c)
 {
     c.SetValueManager (this._vm);
     bool threadstarted = true;
     while (threadstarted) {
         Telegram t = c.LastTelegram;
         if (t != null) {
             //Console.WriteLine ("Admin: " + t.ToString ());
             switch (t.keyWord) {
             case "SHUTDOWN":
                 this.ShutDown ();
             }
         }
     }
 }
Пример #3
0
 public Session(Communicator c, string key)
 {
     this._key = key;
     this._com = c;
     this._ip = this._com.IP;
 }