VmPipeAddress address = new VmPipeAddress( 8080 );
// Set up server
Service service = new Service( "tennis", TransportType.VM_PIPE, address );
registry.bind( service, new TennisPlayer() );
// Connect to the server.
VmPipeConnector connector = new VmPipeConnector();
ProtocolSession session = connector.connect( address,
new TennisPlayer() );