TS/MP Pathsend and Server Programming Manual (G06.24+, H06.03+)

Pathsend Procedure Call Reference
NonStop TS/MP Pathsend and Server Programming Manual132500
5-2
Calls From C or C++
COBOL85, Pascal, pTAL, or TAL. The topics that follow explain how to call the
Pathsend procedures from each of the supported programming languages.
Calls From C or C++
To invoke any of the procedures from within a C or C++ program, you execute a
statement of the following form:
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 C/C++ Programmer’s Guide.
To use the Pathsend procedures in a C program, you must first have named them in an
#include <cextdecs> preprocessor directive.
Note. For general information about calling these and other Tandem system procedures from
programs written in various programming languages, refer to the information about accessing
Guardian procedures in the Guardian Programmers 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.
error = SERVERCLASS_SEND_ ( 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
,tag );