TS/MP 2.5 Pathsend and Server Programming Manual
servers. The SERVERCLASS_SEND_INFO_ procedure is used to obtain information about both
context-free and context-sensitive requests.
The method for accessing these procedures from a Pathsend program depends on the programming
language you use. You can write Pathsend programs in C, C++, COBOL85, Pascal, pTAL, or TAL.
The topics that follow explain how to call the Pathsend procedures from each of the supported
programming languages.
NOTE: For general information about calling these and other NonStop system procedures from
programs written in various programming languages, see 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 contains 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), see the TAL
Programmer’s Guide.
Calls From C or C++
To invoke any of the procedures from within a C or C++ program, you must 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
must be the C types that correspond to the TAL variable types specified in the
Pathsend procedure-call description later in this chapter. For a table of these
corresponding data types, see 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 name them in an #include <cextdecs>
preprocessor directive.
For further information, see the HP C/C++ Programmer’s Guide for NonStop Systems.
Calls From C or C++ 75










