333
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
.Getdata Method
Function:
For the selected socket (selection is made through
) returns the string that contains the data
extracted from the RX buffer.
Syntax:
ser.getdata(maxinplen as word) as string
Returns:
String containing data extracted from the RX buffer
See Also:
Part
Description
maxinplen
Maximum amount of data to return (word).
Details
Extracted data is permanently deleted from the buffer. Length of extracted data is
limited by one of the three factors (whichever is smaller): amount of data in the
RX buffer itself, capacity of the "receiving" string variable, and the limit set by the
maxinplen argument.
Additionally, if this socket uses UDP transport protocol (
= 1-
PL_SOCK_PROTOCOL_TCP) the length of data that will be extracted is limited to
the UDP datagram being processed. Additional conditions apply to UDP datagram
processing; see
method.
.Gethttprqstring Method
Function:
For the selected socket (selection is made through
) extracts up to 255 bytes of the HTTP request
string from theVAR buffer.
Syntax:
ser.gethttprqstring(maxinplen as word) as string
Returns:
String containing data extracted from the VAR buffer.
See Also:
,
Part
Description
maxinplen
Maximum amount of data to return (word).
Details
Extracted data is permanently deleted from the VAR buffer. VAR buffer contents
are explained in
.
Length of extracted data is limited by one of the three factors (whichever is
smaller): amount of data in the buffer itself, capacity of the "receiving" string
variable, and the limit set by the maxinplen argument.
340
345
342
339
340
323
336
326