Broadcasting data to all currently available connections

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

  1. Create a message flow called TCPIP_Task8 with an MQInput node and a TCPIPServerOutput node.
    For more information, see Creating a message flow.
  2. Connect the Out terminal of the MQInput node to the In terminal of the TCPIPServerOutput node.
    MQInput node connected to a TCPIPServerOutput node.
  3. On the MQInput node, set the Queue name property (on the Basic tab) to TCPIP.TASK8.IN1.
  4. Set the following properties of the TCPIPServerOutput node:
    1. On the Basic tab, set the Connection details property to 14148.
    2. On the Advanced tab, set the Send to: property (in the Broadcast options group) to All available connections.
  5. Save the message flow.