<< DestroyMessagePoint mpi_scilab SendMessage >>

mpi_scilab >> mpi_scilab > ReceiveMessage

ReceiveMessage

Receive message by message point

Syntax

Messages = ReceiveMessage(MessagePointName[, WaitMessage[, WaitingTime]])

Arguments

MessagePointName

The name of the messaging point through which the message is received. Matrix of strings

WaitMessage

If WaitMessage is true, then the program is waiting for a non-empty message; otherwise, having received any message, including an empty one, the program continues. Default: %f

WaitingTime

Messaging point waitnig message from message point timeout (ms). Makes sense if the parameter WaitMessage=%t. If WaitingTime = -1, then waiting time for message received is infinite. (default -1)

Messages

Received messages

Description

Receives a message through a messaging point

Examples

//Creating a new message point
messagePointInformation = CreateMessagePoint('MessagePoint2','192.168.0.153',3369);
disp(messagePointInformation);

//Receiving messages
Messages = ReceiveMessage('MessagePoint2', %f);
disp(Messages);

//Deleted the created message point
messagePointInformation = DestroyMessagePoint('MessagePoint2');
disp(messagePointInformation);

See also


Report an issue
<< DestroyMessagePoint mpi_scilab SendMessage >>