RSC/MP Programming Manual

API Functions and Options
Example: Waited I/O
Example: Waited I/O
This example shows how to use waited API function calls:
CHAR acServerName;
USHORT uReturn;
USHORT uReplySize;
USHORT uRequestSize;
SHORT nIoHandle = RSC_IO_WAITED;
...
uReplySize = sizeof (sReplyMessage);
uRequestSize = sizeof (SendMessage);
strcpy (acServerName, "EMPLOYEE-SERVER");
uReturn = RscWriteRead (RSC_DEFAULT_OPTIONS,
ulConnectionHandle,
ulSessionHandle,
acServerName,
nIoHandle,/*waited I/O*/
&sSendMessage,
uRequestSize,
&sReplyMessage,
&uReplySize);
HP NonStop Remote Server Call (RSC/MP) Programming Manual 522360-006
3- 7