NET/MASTER Network Control Language (NCL) Programmer's Guide
Setting Server Class Characteristics
Working With Pathway Server Classes
15–16 106160 Tandem Computers Incorporated
Specifying Reply Message
Structure
Two types of messages flow between an NCL PATHSEND requester and a server
process: request messages, which flow from the NCL PATHSEND requester to the
server process; and reply messages, which flow from the server process to the NCL
PATHSEND requester.
When a PSEND OPEN verb makes a server class available, it can use the FORMAT
and MAP operands of the PSEND OPEN verb to specify the structure of reply
messages (but not request messages). Reply messages can be either mapped or
unmapped. The following example makes a server class available and specifies that
reply messages are mapped using the map REPMAP:
PSEND OPEN ID=PSC_1 FORMAT=MAPPED MAP=REPMAP
The options for specifying reply (and request) message structure are discussed in more
detail later in this section.
Setting Server Class
Characteristics
All server classes have unique characteristics. After you make a server class available
for use by an NCL process, you can use the PSEND SET verb to explicitly set the
current server class characteristics.
Specifying the Current
Server Class Identifier
The current server class is the last server class that was explicitly identified in a
PSEND verb. The current server class is the server class with which NCL assumes it is
to work if a PSEND verb does not explicitly target a server class. You use the ID
operand in a PSEND verb to explicitly specify an identifier.
You can set the current server class in two ways:
Using the PSEND SET verb with the ID operand
Using any other PSEND verb that identifies a server class by identifier
Either technique results in a new current server class. The result of setting a server
class as the current server class is that PSEND verbs (except PSEND OPEN) do not
have to explicitly identify a server class to work on it.
Specifying the Current
Reply Message Structure
Reply message structure—mapped or unmapped—is normally specified using the
PSEND OPEN verb when a server class is made available for use by an NCL process.
You can specify reply message structure using the PSEND SET verb. This allows you
to switch from mapped to unmapped reply messages, from unmapped to mapped
reply messages, or to specify a different map for reply messages.
The following example specifies that reply messages are mapped using the map
NEWMAP:
PSEND SET ID=PSC_1 MAP=NEWMAP