Pathmaker Programming Guide
The Structure of Pathmaker Custom Services and Servers
Creating Services and Servers
4–12 067868 Tandem Computers Incorporated
Figure 4-4 illustrates the structure of a Pathmaker C server and the services it contains.
Figure 4-4. Structure of a Pathmaker C Server
044
Data declarations from common service utility
library header.
main ( )
{ 
Open shared logical files
Call each service setup function, passing 
initialized control parameters
Iterate until server is shut down 
 Read $RECEIVE
 Case statement to call the service requested
 Prepare reply
 Reply to $RECEIVE
Call each service cleanup function, passing 
initialized control parameters
Close shared logical files 
}
Common Service Utility 
Library Functions
Service 1 Function
Includes code from Custom 
Source File for this service and 
expansion of invoked macros.
Service 2 Function
Includes code from Custom 
Source File for this service and 
expansion of invoked macros.
• • •
• • •










