TS/MP Pathsend and Server Programming Manual (H06.05+, J06.03+)

NOTE: For general information about calling these and other NonStop system procedures from
programs written in various programming languages, refer to the information about accessing
Guardian procedures in the Guardian Programmer’s Guide.
None of the Pathsend procedures set the condition-code register. Therefore, language restrictions
on procedures that set this register do not apply to the Pathsend procedures.
NOTE: For some Pathsend procedures, some parameters in the TAL calling syntax contain an
embedded colon and are of the form name:length. These parameters are TAL parameter pairs.
For further information about parameter pairs and their use in mixed-language programming (for
example, calls to these procedures from languages other than TAL or pTAL), refer to the TAL
Programmer’s Guide.
Calls From C or C++
To invoke any of the procedures from within a C or C++ program, you execute a statement of this
form:
( pathmon-process-name
,pathmon-process-name-len
error = SERVERCLASS_SEND_
,server-class-name
,server-class-name-len
,message-buffer
,request-len
,maximum-reply-len
,actual-reply-len
,timeout
,flags
,scsend-op-num
,tag );
error
is an integer variable defined earlier in your data declarations.
pathmon-process-name, pathmon-process-name-len,
server-class-name, server-class-name-len, message-buffer,
request-len, maximum-reply-len, actual-reply-len, timeout,
flags, scsend-op-num, and tag
are variables defined earlier in your data declarations. The types of these variables
should be the C types that correspond to the TAL variable types specified in the
Pathsend procedure-call description later in this section. For a table of these
corresponding data types, refer to the information about mixed-language
programming in the HP C/C++ Programmer’s Guide for NonStop Systems.
To use the Pathsend procedures in a C program, you must first have named them in an #include
<cextdecs> preprocessor directive.
For further information, refer to the HP C/C++ Programmer’s Guide for NonStop Systems.
Calls From COBOL85
To invoke any of the procedures from within a COBOL85 program, you execute a statement of
this form:
USING pathmon-process-name
pathmon-process-name-len
ENTER "SERVERCLASS_SEND_"
server-class-name
server-class-name-len
message-buffer
request-len
maximum-reply-len
76 Pathsend Procedure Call Reference