Example of using the name/token services

The following example shows how an application uses the name/token callable services. The application, called a server application, offers services to users. The application resides within a single address space, the server address space. The application offers services to users that reside in address spaces outside the server address space. The example assumes the server application has already set up the cross-memory environment that allows the users to connect to the server address space.

The server application uses name/token callable service twice during its initialization: