Skip to main content

tcp_server

DEPRECATED

This component is deprecated and will be removed in the next major version release. Please consider moving onto alternative components.

# Config fields, showing default values
input:
label: ""
tcp_server:
address: 127.0.0.1:0
multipart: false
max_buffer: 1000000
delimiter: ""

Creates a server that receives messages over TCP. Each connection is parsed as a continuous stream of line delimited messages.

If multipart is set to false each line of data is read as a separate message. If multipart is set to true each line is read as a message part, and an empty line indicates the end of a message.

If the delimiter field is left empty then line feed (\n) is used.

The field max_buffer specifies the maximum amount of memory to allocate per connection for buffering lines of data. If a line of data from a connection exceeds this value then the connection will be closed.

Fields​

address​

Sorry! This field is missing documentation.

Type: string
Default: "127.0.0.1:0"

multipart​

Sorry! This field is missing documentation.

Type: bool
Default: false

max_buffer​

Sorry! This field is missing documentation.

Type: int
Default: 1000000

delimiter​

Sorry! This field is missing documentation.

Type: string
Default: ""