Receive Data (QNMRCVDT) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Receive Data (QNMRCVDT) API, an SNA/Management Services Transport API, receives a particular request, reply, or error message.

The receiver variable data area is not changed unless it is large enough to hold all of the data received. If the receiver variable is not large enough to hold the received data, then an error message is returned indicating how much more space is needed. The application can allocate a new buffer size greater than or equal to the bytes available and call the Receive Data (QNMRCVDT) API again. If the received data is smaller than the receiver variable, any data in the unused portion of the variable is unchanged.


Authorities and Locks

None.


Required Parameter Group

Handle
INPUT; BINARY(4)

The unique identifier for this application, which was returned by the Start Application (QNMSTRAP) API.

Receiver variable
OUTPUT; CHAR(*)

The variable in which this API returns the data. This structure includes the bytes returned and bytes available in addition to the received data.

The format of the receiver variable is:

The bytes returned field specifies the length of the bytes actually returned. The bytes available field specifies the total length of data available to be returned.

Length of receiver variable
INPUT; BINARY(4)

The size of the receiver variable parameter, which is the maximum amount of data that can be returned in the receiver variable.

Request identifier
INPUT; CHAR(53)

The request identifier of the data being received.


Remote application name
OUTPUT; CHAR(24)

The name of the remote application that sent the data. The first 8 characters contain the network ID, the second 8 characters contain the control point name (or the logical unit name may be used), and the third 8 characters contain the application name of the remote application.

Data type
OUTPUT; CHAR(10)

The type of data returned.


Wait time
INPUT; BINARY(4)

The amount of time the application waits for the data to be received.


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V2R2

[ Back to top | Network Management APIs | APIs by category ]