The SpaceMemberMonitor example creates a SpaceMemberListener for a space. The listener callback is invoked whenever a member joins, leaves, or changes their role in the space (e.g. leech vs seeder). The listener callback displays information about the event which caused it to be invoked.
SpaceMemberMonitor is only interested in events that affect the members of an existing space. It does not create the space itself.
If SpaceMemberMonitor connects to a metaspace with existing members, it displays information about those members when it first starts up, and then displays information about members as they connect to or leave the space.
The following examples show how to invoke SpaceMemberMonitor for each of the API sets.
These command line options start SpaceMemberMonitor using the default metaspace named
ms and allow it to connect to a security domain controller that has been started using the example security policy file
example_policy.txt.
To see output from SpaceMemberMonitor, start
SpaceMemberMonitor and then start as-agent or other example programs, such as
ASOperations, to see what is displayed when each program connects to or leaves the space.
Enter quit in the command window to exit the program.