Broadcast data to all
current connections, by the use of a message flow with MQInput and TCPIPServerOutput nodes.
About this task
Scenario: Several applications connect into the
message flow and wait to be sent data.
Instructions: The
following steps describe how to send data to all the connected client
applications:
Procedure
- Create a message flow called TCPIP_Task8 with
an MQInput node and a TCPIPServerOutput node.
- Connect the Out terminal of the MQInput node to the In terminal
of the TCPIPServerOutput node.
- On the MQInput node,
set the Queue name property
(on the Basic tab) to TCPIP.TASK8.IN1.
- Set the following properties of the TCPIPServerOutput node:
- On the Basic tab, set the Connection details property to 14148.
- On the Advanced tab, set the Send to: property (in the Broadcast
options group) to All
available connections.
- Save the message flow.