To start the FoamX host browser on the host machine, the user should either
run the runFoamXHB script, or, in the case that the host browser is run locally,
run runFoamX which itself launches runFoamXHB. runFoamXHB performs two
functions as shown in Figure 5.2.
The MICO name
server -- a process called nsd -- is started by the host machine using
the host/port address given by the org.omg.CORBA.ORBInitialHost=
and org.omg.CORBA.ORBInitialPort= entries in the FoamXClient.cfg
file in the user’s $OpenFOAMX_USER_CONFIG directory. The name server
writes the host/port address in IOR form in the ns.ref file in the same
directory.
The FoamXHostBrowser process is started on the host/port address
where nsd was started and registers itself under the name
FoamXHostBrowser.
Therefore the execution of runFoamXHB, by typing at the command prompt
runFoamXHB
launches the name server and host browser which outputs to screen the following:
Starting NameServer with inet:<host>:<port>... Starting FoamX Host Browser with inet:<host>:<port>...
where <host>:<port> are those specified in the FoamXClient.cfg file. The
FoamXHostBrowser prints the Nabla Ltd. logo strip to screen and details about its
execution status to indicate it is running correctly.
The contents of the ns.ref file can be ‘translated’ and viewed by typing
iordump < $OpenFOAMX_USER_CONFIG/ns.ref
An administration tool for MICO can be started by typing
nsadmin -ORBNamingAddr inet:<host>:<port>
where the inet:<host>:<port> entry can be found by viewing the ns.ref
file. The user should type help to view the options within the tool, which
include ls to list the registered services.