351
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Part
Description
numpages
Requested numbers of buffer pages to allocate.
Details
Returns actual number of pages that can be allocated. Actual allocation happens
when the
method is used. The socket is unable to RX data if its RX
buffer has 0 capacity. Actual current buffer capacity can be checked through the
which returns buffer capacity in bytes.
Relationship between the two is as follows: sock.rxbuffsize=num_pages*256-16
(or =0 when num_pages=0), where "num_pages" is the number of buffer pages
that was GRANTED through the sock.rxbuffrq. "-16" is because 16 bytes are
needed for internal buffer variables.
Buffer allocation will not work if the socket port to which this buffer belongs is not
idle (
is not at 0- PL_SSTS_CLOSED) at the time when sys.
buffalloc executes. You can only change buffer sizes of sockets that are idle.
.Rxbuffsize R/O Property
Function:
For the currently selected socket (selection is made
through
) returns current RX buffer capacity
in bytes.
Type:
Word
Value Range:
0-65535
See Also:
---
Details
Buffer capacity can be changed through the
. The sock.rxbuffrq
requests buffer size in 256-byte pages whereas this property returns buffer size in
bytes.
Relationship between the two is as follows: sock.rxbuffsize=num_pages*256-16
(or =0 when num_pages=0), where "num_pages" is the number of buffer pages
that was GRANTED through the sock.rxbuffrq. "-16" is because 16 bytes are
needed for internal buffer variables. The socket cannot RX data when the RX buffer
has zero capacity.
.Rxclear Method
Function:
For the selected socket (selection is made through
) clears (deletes all data from) the RX buffer.
Syntax:
sock.rxclear
217
351
358
340
350
340