3.2 TimeServer

This example consists of a timeServer with a number of clients. At startup a client registers itself with a timeServer. When this is done, the timeServer will call a method in the timeClient once each second. Note that this means that in the usual RPC sense, the timeServer is now a client of its timeClients, since it is the server that executes methods in the clients.

timeServer.bet has no user interface while timeClient.bet is a simple X/motif program displaying the wall-clock time.

To run this example, copy the programs to a directory of your own and compile:

beta timeServer timeClient

Now execute a timeServer on some network host (remember that the ensembleDeamon should be running already), and finally execute some number of timeClients. As command line parameter, the timeClient takes the name of the ensemble on which the timeServer is expected to run. Default is the local ensemble, if no parameters are given.


Distributed Objects in BETA - Reference Manual
© 1993-2002 Mjølner Informatics
[Modified: Monday October 23rd 2000 at 11:16]