private void Dashboard_Load(object sender, EventArgs e) { NetworkInterface.Start(); if (Utility.DashboardLoad == 0) { Thread cpu_performance_thread = new Thread(CPU_Performance); Thread memory_performance_thread = new Thread(Memory_Performance); cpu_performance_thread.Start(); memory_performance_thread.Start(); Utility.DashboardLoad = 1; } }
private void Dashboard_Load(object sender, EventArgs e) { _NoNodes.Text = Utility.No_Of_Nodes.ToString(); if (Utility.DigLock == 1) { Thread _cputhread = new Thread(CPU_Performance); Thread _memorythread = new Thread(Memory_Performance); _cputhread.Start(); _memorythread.Start(); Utility.DigLock = 0; } NetworkInterface.Start(); }
protected virtual void Awake() { connections = new List <Connection>(); var transport = GetComponent <ITransport>(); NetworkInterface = transport.CreateServer(NumMaxClients, LagSettings); NetworkInterface.Start(Port); NetworkInterface.NewConnectionEstablished += OnNewConnectionEstablished; NetworkInterface.DisconnectNotification += OnDisconnectNotification; Reactor = new ServerReactor(NetworkInterface); ReplicaManager = new ServerReplicaManager(this); }