Type

Top  Previous  Next

Name

Parameters

Description

PARSER_LENGTH

length (number)

Length based parser.

PARSER_PASSTHROUGH

none

Passes data through as it comes in. This could be in single bytes or blocks of bytes.

PARSER_TERMINATED

single terminator string for example "\n"

Splits incoming data at each terminator without returning terminator.

PARSER_TERMINATED_LIST

array of strings

Splits incoming data based on a list of terminators and keeps the terminator on the data.

FIRST_BYTE_LENGTH

none

Splits the incoming data by using the first byte of the incoming data as the length field. The length does not include the first byte. For example

 

02 00 01 03 01 02 03

 

holds 2 messages

 

Message 1: 00 01

Message 2: 01 02 03

Related

Connection Object

Availability

Lua