Start() public méthode

public Start ( ) : void
Résultat void
 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;
     }
 }
Exemple #2
0
 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();
 }
Exemple #3
0
        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);
        }