GetAMQPMessage
Structure
GetAMQPMessage(sHost, sPort, sUser, sPassword, sContainer, sSession, sReceiver, sTarget, bSSL, iTimeOut)
Parameters
| Parameter | Type | Description |
|---|---|---|
sHost | String | Host of the server to connect to. |
sPort | String | Port to send the message to. |
sUser | String | User to connect as |
sPassword | String | Password to connect as |
sContainer | String | AMQP container to use |
sSession | String | AMQP session to use |
sReceiver | String | AMQP receiver to use |
sTarget | String | Target Queue to send message to |
bSSL | Boolean | Whether to use SSL when connecting |
iTimeOut | Integer | Number 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)