RSC/MP Programming Manual

Unsolicited Message Service
Sending Messages Using RSCCOM
Sending Messages Using RSCCOM
The RSCCOM TELL command can send informationa l messages to sessions on
remote workstations. The following example sends the message HELLO to
workstation TERM01 whose group alias is TEST:
(( TELL TERM01 GROUP TEST HELLO
See the Remote Server Call (RSC/MP) Installation and Configuration Guide for more
information about the RSCCOM commands.
UMS Header Description
When using the UMS header that is included in the RSC.H file, place the message
data in a buffer immediately followi ng this header.
typedef struct
{
SHORT nCode;
USHORT uVersion;
CHAR acTerminalName [ RSC_TERMNAME_SIZE ];
CHAR acAlias [ RSC_ALIAS_SIZE ];
USHORT uAliasType;
} RSC_UMS_HEADER;
where each value is defined as:
nCode
The RSC/MP return code of the UMS SEND operation. The return codes are
defined in the RSC.H header file. A return value of zero indicates that the operation
was successful. See the Remote Server Call (RSC/MP) Messages Manual for
other possible va lues.
uVersion
The version of RSC/MP with which the application was compiled. After an
application is compiled, the version number is input to the RSC_VERSION value in
the RSC.H file. The version of your application is compared to the version of
RSC/MP to ensure you are using the UMS header that corresponds to the version
of yo ur application.
acTerminalName
The TERM_NAME of the workstation that receives the message or an asterisk (*)
for all terminals. The name must be terminated with NULL characters or filled to
the end with blank characters.
HP NonStop Remote Server Call (RSC/MP) Programming Manual 522360-006
8- 7