"Listing 6.1" shows how an application can enumerate all the valid IS servers in the specific IPC partition.
First the user program has to include the is/info.h header file which declares the ISServerIterator class. Then the program creates the instance of the IPCPartition class. This instance represents the partition in which the Information Service will be used. The ISServerIterator class constructor takes this partition object as parameter. Then, lines 20-21 show how to use this iterator to get back names of all the valid IS servers in the "MyPartition" partition.
2 July 1998 - WebMaster | Copyright © CERN 1998 |