beautypg.com

Compaq AA-Q88CE-TE User Manual

Page 103

background image

CALL RTR_RECEIVE_MESSAGE

/TIMEOUT_MS=timoutms
/TIMEOUT_MS=0 (D)

The timoutms argument defines a timeout for the receive, in milliseconds. The
default value is an infinite timeout. /TIMEOUT_MS specifies an immediate
timeout.

Examples

The following example shows two CALL RTR_RECEIVE_MESSAGE commands
on RTR$DEFAULT_CHANNEL.

RTR> CALL RTR_RECEIVE_MESSAGE /TIMEOUT_MS
%RTR-S-OK, normal successful completion
channel name:

RTR$DEFAULT_CHANNEL

msgsb

msgtype:

rtr_mt_rtr_event

msglen:

0

evtnum:

113

(RTR_EVTNUM_SRRECOVERCMPL)

RTR> CALL RTR_RECEIVE_MESSAGE /TIMEOUT_MS
%RTR-S-OK, normal successful completion
channel name:

RTR$DEFAULT_CHANNEL

msgsb

msgtype:

rtr_mt_msg1

msglen:

55

usrhdl:

0

tid:

1fe5c,495a4,0,0,1bf80,84,36

message

offset

bytes

text

000000

54 68 69 73 20 69 73 20 74 68 65 20 6D 65 73 73

This is the mess

000010

61 67 65 20 74 65 78 74 2E 20 53 6F 6D 65 20 64

age text. Some d

000020

69 67 69 74 73 20 68 65 72 65 3A 20 31 32 33 34

igits here: 1234

000030

35 36 37 38 39 30 00

567890.

RTR Command Line Interface 6–27