Esempio n. 1
0
 private void adminInit(string userIP, bool initialAdmin = true, Dictionary<int, string> runningRegNodes = null)
 {
     Form.UpdateTitle("Admin IP:" + getLocalIPAddress());
     this.NodeAdmin = new NodeAdmin(this, userIP, initialAdmin, runningRegNodes);
     NodeType = NodeType.ADMIN;
     adminIP = this.NodeAdmin.getLocalIPAddress();
 }
Esempio n. 2
0
        public void rebootNode()
        {
            ListenerTcp.Server.Close();
            StopSend = true;
            adminIP = null;

            sockUdpReg.Close();
            this.NodeAdmin = null;
            this.NodeType = NodeType.REGULAR;
            try {
                Thread.Sleep(10000);
            }
            catch(Exception ex){}
            adminEndpointData = null;
            adminEndpointReg = null;
            nodeInit(Id);
        }