IPCLinkEndpoint::DoRequest (open)

Sends a message and waits for the reply. Throws if a reply to another messages comes in.

Syntax

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

RECORD FUNCTION DoRequest(RECORD message)

Parameters

RECORD message

Message to send

Return value

RECORD

Result of the action

msg

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

msgid

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

status

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