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

RECORD msg

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

INTEGER64 msgid

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

INTEGER64 replyto

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

STRING 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