334
Platforms
©2000-2008 Tibbo Technology Inc.
This method is only relevant when the socket is in the HTTP mode (
= 1- YES). Use it from within an HTML page or
event
handler.
.Getinband Method
Function:
For the selected socket (selection is made through
) returns the string that contains the data
extracted from the CMD buffer.
Syntax:
sock.getinband as string
Returns:
String containing data from the CMD buffer
See Also:
Part
Description
Details
The CMD buffer is the buffer that accumulates inband commands. Extracted data is
permanently deleted from the CMD buffer. Length of extracted data is limited by
one of the two factors (whichever is smaller): amount of data in the CMD buffer
itself, and the capacity of the "receiving" buffer variable. Several inband
commands may be waiting in the CMD buffer. Each command will always be
complete, i.e. there will be no situation when you will extract a portion of the
command because the end of this command hasn't arrived yet. Inband commands
stored in the CMD buffer will have escape character (see
property)
and the character after the escape character already cut off, but the end character
(see
property) will still be present. Therefore, your application can
separate inband command from each other by finding the end characters.
.Httpmode Property
Function:
For the currently selected socket (selection is made
through
) specifies whether this socket is in
the HTTP mode.
Type:
Enum (no_yes, byte)
Value Range:
0- NO (default): "regular" TCP connection.
1- YES: - HTTP connection.
See Also:
---
Details
This property is irrelavant when the
= PL_SOCK_PROTOCOL_UDP
334
344
340
332
331
340
345