Skip to main content

GetAMQPMessage

Structure

GetAMQPMessage(sHost, sPort, sUser, sPassword, sContainer, sSession, sReceiver, sTarget, bSSL, iTimeOut)

Parameters

ParameterTypeDescription
sHostStringHost of the server to connect to.
sPortStringPort to send the message to.
sUserStringUser to connect as
sPasswordStringPassword to connect as
sContainerStringAMQP container to use
sSessionStringAMQP session to use
sReceiverStringAMQP receiver to use
sTargetStringTarget Queue to send message to
bSSLBooleanWhether to use SSL when connecting
iTimeOutIntegerNumber of seconds to wait before timing out

Return value

The message found, or an error message describing the problem sending.

Description

This function connects to a server using the AMQP protocol and attempts to get a message from it.

Example

GetAMQPMessage("localhost", "5672", "", "", "IndyContainer", "IndySession", "IndyReceiver", "DemoTarget", false, 1)