a0GetRequestData()

Gets information from a request.


Syntax

a0tError a0GetRequestData(
a0tRequest *request,
a0tRequestData *data );

Arguments

Namerd/wrDescription
request read Request of a completed receive.
data write Structure containing the information.

Description

This function must be used after completion of a probe or a receive request. It stores in the field data->source the source node of the send that matched the request, useful when doing probe or receive from A0AnySource. It also stores in the field data->size the number of bytes received.


Return Values

If an error condition occurs, it returns the error code, otherwise it returns A0ErrOk. Possible values are as follows:
Error CodeDescription
A0Err...Some error occurred.
A0ErrOkSuccessful completion.

See Also

a0Probe() a0IProbe() a0Receive() a0IReceive() a0ReceiveBuffer() a0IReceiveBuffer() a0WaitRequest()