|
|
This program was designed to provide the simplest possible example of a program using Antigone. It uses symmetric multicast, so the system must have that capability enabled. IP addresses and port numbers have been hard coded for simplification.
Each instantiation of the program writes one message to the group, and then attempts to read any incoming messages for up to one minute. Messages from any member of the group will be sent to all others.
To run this program, first set the ANTI_HOME and NAME environment variable to the base Antigone directory and the "NAME" environment variable for each instantiation as specified in Environment Variables. Next, start the group leader, after which each of the other members should be started.
Usage:
simple [ argument ]
where the presence of argument
indicates that this program is a client. The argument
value may be anything.
Note that simple creates a log file creates a log file. This can help in debugging problems running the program.
Example usages (from shell command prompt '$'):
$ # on machine king as the group leader: $ cd antigone-2.0/bin $ NAME=king $ simple . . . $ # on machine tobin as a member (client): $ cd antigone-2.0/bin $ cp ../../docs/policy/loc.apd . $ NAME=jester $ simple king