RSC/MP 7.2 Programming Manual
API Functions and Options
HP NonStop Remote Server Call (RSC/MP) Programming Manual—522360-004
3-8
Example: Nowaited I/O
Example: Nowaited I/O
This example shows how to use nowaited API function calls: 
CHAR acServerName;
USHORT uReturn;
USHORT uReplySize
USHORT uRequestSize;
SHORT nIoHandle = 1;
...
strcpy (acServerName, "EMPLOYEE-SERVER");
uReturn = RscWriteRead (RSC_DEFAULT_OPTIONS,
 ulConnectionHandle,
 ulSessionHandle,
 acServerName,
 nIoHandle,/*nowaited I/O*/
 &sSendMessage,
 uRequestSize,
 NULL,
 NULL);
uReplySize = sizeof (sReplyMessage);
while (TRUE){
 uReturn = RscIoCheck (ulConnectionHandle,
 ulSessionHandle,
&nIoHandle,/*nowaited I/O*/
 &sReplyMessage,
 &uReplySize);
 if (uReturn != RSC_IO_PENDING)
 break; /*I/O has completed - get out of the while loop*/
}
Checking and Replying to Unsolicited 
Messages
The RscUmsCheck function checks for unsolicited messages received during the 
session and retrieves the messages if there are any. Use the RscUmsReply function to 
reply to an unsolicited message that was initiated by the Guardian WRITEREAD 
procedure. See Section 8, Unsolicited Message Service for more information about the 
UMS. 










