public void AdminLoop() { this._adminlistener.Start (); while (true) { Communicator c = new Communicator (this._adminlistener.AcceptTcpClient ()); this.AdminThread (c); } }
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 (); } } } }
public Session(Communicator c, string key) { this._key = key; this._com = c; this._ip = this._com.IP; }