public AgentApplication(int port, ManagementPlane management)
 {
     this.management = management;
     this.port       = port;
     thread          = new Thread(new ThreadStart(Listen));
     thread.Start();
 }
Example #2
0
        //private List<Node> nodeList;

        public AgentNode(int port, List <Node> nodeList, ManagementPlane management)
        {
            this.management     = management;
            this.managementPort = port;
            //this.nodeList = nodeList;

            listener = new TcpListener(IPAddress.Any, managementPort);
            thread   = new Thread(new ParameterizedThreadStart(Listen));
            thread.Start(management);
        }