a0ISendBuffer()

Starts a non-blocking send of a buffer.


Syntax

a0tError a0ISendBuffer(
a0tPort *port,
int dest,
int tag,
a0tRequest *request,
a0tBuffer *buffer );

Arguments

Namerd/wrDescription
port read Port to send to (on destination node).
dest read Destination node to send to.
tag read tag to use.
request write Request descriptor to hold the status.
buffer read Send buffer.

Description

This starts performs a non-blocking send to a given port port on a given node dest, with a given tag tag. It posts a request to send the buffer buffer.

The buffer cannot be modified before the completion of the request.

Only the amount of data packed in the buffer will be sent, regardless of the total size allocated. The buffer is kept intact after being sent. It can be sent again many times or be used to pack aditional data. To clear packed data inside a buffer and reuse it to pack new data, use a0ClearBuffer().

If a NULL is passed as request, no structures are kept after the request completion, so it cannot be tested or waited later. It is supposed that the program has other means to find out if the request has ended, as for example, a subsequent request.

On return of this function, the variable pointed by request contains an opaque request that can be used later to test or wait the completion status of the send operation.


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

a0SendBuffer() a0Send() a0ISend() a0IReceiveBuffer() a0Pack() a0Unpack()