11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

amReceiveRequest<br />

Syntax<br />

amReceiveRequest(hSession, receiverName, policyName, maxMsgLen, dataLen,<br />

data, rcvMsgName, senderName, reasonCode)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

1-92 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

The amReceiveRequest function receives a request message.<br />

For detailed information about this function, see <strong>UniBasic</strong> Extensions.<br />

Parameters<br />

The following table describes each parameter of the syntax.<br />

Parameter Description<br />

hSession The session handle returned by the amInitialize function. [IN]<br />

receiverName The name of a receiver service. If you specify ““ (null), UniData uses the<br />

system default receiver name. [IN]<br />

policyName The name of a policy. If you do not specify a policy name, UniData uses<br />

the system default policy name. [IN]<br />

maxMsgLen The maximum message length the application will accept. Specify -1 to<br />

accept messages of any length. See <strong>UniBasic</strong> Extensions for detailed<br />

information about this parameter. [IN]<br />

dataLen The length of the message data, in bytes. Specify ““(null) if this is not<br />

required. [OUT]<br />

data The received message data. [OUT]<br />

amReceiveRequest Parameters

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!