Home Downloads Buy Now !

 Network Nodes


This example uses the TagServer to get a list of all of the nodes on the current network domain.  It writes their names to the console and Releases the TagServer.


using System;

using System.Collections;

using IDN.IO;

namespace Network_Nodes_Example


   class Class1



      static void Main(string[] args)


         TagServer server = new TagServer();

         Console.WriteLine("Searching the domain... Please wait.");

         SortedList nodes = server.FindNetworkNodes();

         for (int i = 0; i < nodes.Count; i++)


            Console.WriteLine(((IONode) nodes.GetByIndex(i)).NodeName);



         Console.WriteLine("Done... [Enter] to exit.");





Copyright © 2004-2017 Industrial DOT NET, Inc.