IPCLinkEndpoint::ReceiveMessage (open)

Receives a message from the other endpoint

Syntax

LOADLIB "wh::internal/jobs.whlib";

RECORD FUNCTION ReceiveMessage(DATETIME wait_until)

Parameters

DATETIME wait_until

Block until this time, DEFAULT DATETIME for immediate return.

Return value

RECORD

Result of the action

RECORD msg

The received message (only when status = 'ok')

INTEGER64 msgid

Id of the message (only when status = 'ok')

INTEGER64 replyto

Id message this item is a reply to (0 if not a reply)

status

One of the following codes: 'ok': message received successfully 'timeout': no message was present 'gone': other endpoint of the link has been closed