This is archived documentation for an older version of Nirvana (v2.0). Please refer to documentation for the latest version if required.

P2P Echo Server and Client

The P2P Echo Service and client demonstrate some of the capabilities of Nirvana's P2P service. One nP2PEchoServer can support many instances of an nP2PEcho client.

To run the echo server against a local Nirvana installation running on your local machine type the following command:

Java -DRNAME=nsp://127.0.0.1:9000/ com.pcbsys.Nirvana.apps.nP2PEchoServer

Once the server is running you can start any number of client sessions with the server. To start a client type the following command:

Java -DRNAME=nsp://127.0.0.1:9000/ com.pcbsys.Nirvana.apps.nP2PEcho

The client will connect to the P2P service attached the realm specified by the RNAME. All characters typed into the client will be echoed directly back by the P2P server