github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/inputs/tcp_server.md (about)

     1  ---
     2  title: tcp_server
     3  type: input
     4  status: deprecated
     5  ---
     6  
     7  <!--
     8       THIS FILE IS AUTOGENERATED!
     9  
    10       To make changes please edit the contents of:
    11       lib/input/tcp_server.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  :::warning DEPRECATED
    18  This component is deprecated and will be removed in the next major version release. Please consider moving onto [alternative components](#alternatives).
    19  :::
    20  
    21  ```yaml
    22  # Config fields, showing default values
    23  input:
    24    label: ""
    25    tcp_server:
    26      address: 127.0.0.1:0
    27      multipart: false
    28      max_buffer: 1000000
    29      delimiter: ""
    30  ```
    31  
    32  Creates a server that receives messages over TCP. Each connection is parsed as a
    33  continuous stream of line delimited messages.
    34  
    35  If multipart is set to false each line of data is read as a separate message. If
    36  multipart is set to true each line is read as a message part, and an empty line
    37  indicates the end of a message.
    38  
    39  If the delimiter field is left empty then line feed (\n) is used.
    40  
    41  The field `max_buffer` specifies the maximum amount of memory to
    42  allocate _per connection_ for buffering lines of data. If a line of data from a
    43  connection exceeds this value then the connection will be closed.
    44  
    45  ## Fields
    46  
    47  ### `address`
    48  
    49  Sorry! This field is missing documentation.
    50  
    51  
    52  Type: `string`  
    53  Default: `"127.0.0.1:0"`  
    54  
    55  ### `multipart`
    56  
    57  Sorry! This field is missing documentation.
    58  
    59  
    60  Type: `bool`  
    61  Default: `false`  
    62  
    63  ### `max_buffer`
    64  
    65  Sorry! This field is missing documentation.
    66  
    67  
    68  Type: `int`  
    69  Default: `1000000`  
    70  
    71  ### `delimiter`
    72  
    73  Sorry! This field is missing documentation.
    74  
    75  
    76  Type: `string`  
    77  Default: `""`  
    78  
    79