NetBase for MPE Reference Guide

NetBase NFA
6-13
Parameter Description
recvlen
A 32-bit signed integer by reference returning the actual length in bytes of the
data to be transferred in recvbuff. It must be set by the calling process to the
maximum receive buffer length. The procedure on the remote system may reset
this variable to the actual receive length as long as it is less than or equal to the
maximum length. NetBase will return the actual number of bytes returned.
Remote User Procedure (procname) Calling Conventions
Use the following syntax and parameters for remote user procedure calling.
Syntax
procname (status,recvbuff,recvlen,sendbuff,sendlen)
Parameters
Parameter Description
status
A 32-bit signed integer value passed by reference. The status variable should
never exceed the length of a 16-bit integer. All NetBase errors will be returned
negative leaving the positive range for errors from this procedure.
recvbuff
A user defined structure passed from the NBRPC sendbuff.
recvlen
A 32-bit signed integer by reference containing the length in bytes of the NBRPC
sendbuff.
sendbuff
A user-defined structure to be returned to the calling process.
sendlen
A 32-bit signed integer by reference returning the actual length in bytes of the
data to be transferred in sendbuff. This procedure may reset this variable to the
actual send length as long as it is less than or equal to the maximum length.
NetBase will return the actual number of bytes returned.