.tlspeekdata Method

Function:

For the currently selected socket (selection is made through sock.num), returns a string that contains a "preview" of the data in the TLS RX buffer. The data is NOT deleted from the TLS RX buffer.

Syntax:

sock.tlspeekdata(maxinplen as word) as string

Returns:

String containing the data from the TLS RX buffer.

See Also:

Transport Layer Security (TLS), Sending and Receiving Data, sock.tlsgetdata


Part

Description

maxinplen

The maximum number of data bytes to preview (word).


Details

The length of the returned data is limited by one of three factors (whichever is smaller): the amount of data in the TLS RX buffer itself, the capacity of the "receiving" string variable, and the limit set by the maxinplen argument. String variables can hold up to 255 bytes of data, so this method will only allow you to preview up to 255 "next" bytes from the TLS RX buffer.


.tlspeekdata Method

Details