TCP Listener - Configuration (Magic xpi 3.x)
The TCP Listener component enables Magic xpi to listen continuously for requests made by a TCP client on a TCP port, and to trigger a flow when a specific request is received.
Note:
|
Before you use the TCP Listener component, you should first define a TCP Listener service in the Service Repository.
|
The Component Configuration: TCP Listener dialog box contains the following fields:
|
|
Operation Details
|
Message in
|
Specifies the variable that holds a request received from a TCP client.
Click to open the Variables List. Choose the required variable, and click Select.
|
Return value
|
Specifies the variable that holds the returned value. If you set the Processing mode (below) to Synchronous, a True value can be returned. If you set the Processing mode (below) to Asynchronous, a False value can be returned.
Click to open the Variables List. Choose the required variable, and click Select.
|
Request Details
|
Processing mode
|
Specifies how the request is handled. Select one of the following from the drop-down list:
-
Synchronous (default): Once the flow process (including any parallel branches of the flow) is completed, the value contained in the Return value variable (above) is returned as the TCP client's response.
-
Asynchronous: A standard confirmation is returned to the TCP client. The client does not wait until the request has completed its activities.
|