예제 #1
0
 public MainWindow()
     : base(Gtk.WindowType.Toplevel)
 {
     Build ();
     this._com = new Communicator (new TcpClient ("192.168.0.10", 8888));
     this._vm = new ValueManager (555);
 }
예제 #2
0
 public Server()
 {
     this._sm = new SessionManager ();
     this._connectionqueue = new Queue ();
     this._vm = new ValueManager (10000);
     this._mainthreadid = this._vm.NumberID;
     this._adminthreadid = this._vm.NumberID;
     this._started = false;
     this._clientlistener = new TcpListener (IPAddress.Parse ("192.168.0.10"), 8888);
     this._adminlistener = new TcpListener (IPAddress.Parse ("192.168.0.10"), 8889);
     this._tm = new ThreadManager (10);
     this._tm.GetNewThread (this.MainLoop, this._mainthreadid);
     this._tm.GetNewThread (this.AdminLoop, this._adminthreadid);
 }
예제 #3
0
 public void SetValueManager(ValueManager vm)
 {
     this._vm = vm;
 }