Documentation Index

Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt

Use this file to discover all available pages before exploring further.

send data with tcp-client()

Prev Next

This function has two use cases.

Use case 1

If a is a client connection (see TCP connections), payload b is sent there.

The return value of the function is the Response as a string.

NOTE:  If the connection uses a ByteHandler, the response is a Base64 string. See also function decode Base64().

Use case 2

If a is a server connection (see TCP connections) and a is used in the Profile in a TCP Input agent, b is sent as a response to the TCP Client that called the profile.

Parameters

Parameter

Description

a

The TCP alias of the connection (see TCP connections).

b

If a uses a StringHandler, specify a normal string.

If a uses a ByteHandler, a Base64 value must be specified. Use function convert hex to base64() to generate the value.