# flogo_network_server_framed **Repository Path**: shipnet_masterclock/flogo_network_server_framed ## Basic Information - **Project Name**: flogo_network_server_framed - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-13 - **Last Updated**: 2021-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TCP/UDP Trigger This trigger reads/writes data using TCI/UDP networks. ### Flogo CLI ```bash flogo install github.com/project-flogo/contrib/trigger/tcpudp ``` ## Configuration ### Setting : | Name | Type | Description |:--- | :--- | :--- | network | string | Network type. Supported types: tcp,tcp4,tcp6,udp,udp4,udp6 - ***REQUIRED*** | host | string | Host IP or DNS resolvable name | port | string | Port to listen on - ***REQUIRED*** | delimiter | string | Delimiter for read and write. If not set, trigger will read data until EOF | timeout | integer | Read and Write timeout in milliseconds. To disable timeout, set value to 0. ### Output: | Name | Type | Description |:--- | :--- | :--- | data | string | The data received from client ### Reply: | Name | Type | Description |:--- | :--- | :--- | reply | string | The data to be sent back to the client ## Examples ```json { "triggers": [ { "ref": "github.com/project-flogo/contrib/trigger/tcpudp", "name": "ReceiveTCPData", "settings": { "network": "tcp4", "host": "localhost", "port": "8999", "delimiter": "\n", "timeout": 200 }, "id": "ReceiveTCPData", "handlers": [ { "settings": {}, "action": { "ref": "github.com/project-flogo/flow", "settings": { "flowURI": "res://flow:TCP" }, "input": { "data": "=$.data" }, "output": { "reply": "=$.reply" } }, "reply": { "reply": "" } } ] } ] } ```