a0Send()

Performs a blocking send with a datatype.


Syntax

a0tError a0Send(
a0tPort *port,
int dest,
int tag,
a0tRequest *request,
a0tDatatype datatype,
void *address,
int count );

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.
datatype read Datatype of the data to send.
address write Address of the data to send.
count read Number of elements to send.

Description

This function performs a blocking send to a given port port on a given node dest, with a given tag tag. It blocks the calling thread to send a message described by datatype.

On return of this function, the variable pointed by request contains an opaque request that can be used later to check 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

a0ISend() a0IReceive() a0Receive() a0SendBuffer() a0_DATATYPES