TCP Listener
This source connector listens for messages coming in over a TCP connection. It can either listen on a TCP interface/port and wait for clients to connect, or connect to an external server. There are options to decide when to keep connections open, and how many clients can connect at once. Configurable transmission modes allow you to decide how to receive inbound messages and send responses. When sending responses, you can choose to send the data back on the same connection, or on a new connection.
Supported property groups:
Item | Name | Default Value | Description |
---|---|---|---|
A | Transmission Mode | MLLP | The transmission mode determines how to receive message data from the incoming byte stream, and how to send responses out. For additional information, see TCP Transmission Modes. |
B | Sample Frame | <VT> <Message Data> <FS> <CR> | An example of a valid incoming message. This is dependent on the Transmission Mode. |
C | Mode | Server |
|
D | Remote Address | The domain name or IP address on which to connect. Only applicable for Client mode. | |
E | Remote Port | The port on which to connect. Only applicable for Client mode. | |
F | Override Local Binding | No |
Only applicable for Client mode. |
G | Reconnect Interval (ms) | 5000 | Enter the time (in milliseconds) to wait between disconnecting from the TCP server and connecting to it again. Only applicable for Client mode. |
H | Max Connections | 10 | The maximum number of client connections to accept. After this number has been reached, subsequent socket requests will be rejected. Only applicable for Server mode. |
I | Receive Timeout (ms) | 0 | The amount of time, in milliseconds, to wait without receiving a message before closing a connection. |
J | Buffer Size (bytes) | 65536 | Useful when you expect to receive large messages. Generally, the default value is fine. |
K | Keep Connection Open | Yes |
|
L | Data Type | Text |
|
M | Encoding | Default | Select the character set encoding to use when decoding bytes from the TCP stream, or select Default to use the default character set encoding for the JVM Mirth® Connect by NextGen Healthcare is running on. |
N | Respond on New Connection | No |
|
O | Response Address | The domain name or IP address to send message responses to. | |
P | Response Port | The port to send message responses to. |