RSC/MP Programming Manual
API Function Descriptions
RscWriteRead [RSCWR]
RscWriteRead [RSCWR]
The RscWriteRead function issues a WRITEREAD I/O request to a server process on
the NonStop host. The request is issued on the session identified by ulSessionHandle
and can be issued as a waited or nowaited I/O request. Use the supplied nIoHandle to
complete the I/O request using the RscIoCheck function. The data referenced by
pvWriteBuffer is written to the receiving server indicated by pcServerName.
If you issue a nowaited I/O request, control is immediately returned to the application,
and the I/O must be completed with a call to the RscIoCheck function. Whe n using
nowaited WriteRead operations, there is a limit of 65530 concurrent (outstanding)
nowaited I/Os for each TERM object.
Note. If a nowaited I/O request is issued, pvReplyBuffer and puReplySize must be NULL.
If you issued a waited I/O request, control returns to the application when the receiving
process replies to the WRITEREAD request. The maximum size of the reply must be
specified by the contents of puReplySize. The reply is copied to the storage location
indicated by pvReplyBuffer, and puReplySize is updated with the actual number of
characters in the reply.
USHORT RscWriteRead
(ULONG ulOptionsHandle /* in */
,ULONG ulConnectionHandle /* in */
,ULONG ulSessionHandle /* in */
,CHAR *pcServerName /* in */
,SHORT nIoHandle /* in */
,VOID *pvRequestBuffer /* in */
,USHORT uWriteSize /* in */
,VOID *pvReplyBuffer /* out */
,USHORT *puReplySize /* in / out */
);
ulOptionsHandle
The handle of an existing options handle created through the RscCreateOptions
function call. Placing RSC_DEFAULT_OPTIONS in this field indicates that the
default options should be used. See Appendix D, API Option Definitions, for a list
of options and their meanings.
ulConnectionHandle
The handle of an existing connection created through the RscConnect function
call.
ulSessionHandle
The handle of an existing session created through the RscBeginSession function
call.
HP NonStop Remote Server Call (RSC/MP) Programming Manual — 522360-006
10 - 43