361
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
See Also:
Details
This property is reset to 0 each time there is some data exchanged across the
socket connection. The property increments at 0.5 second intervals while no data
is moving through this socket.
is not at 0, this property increments until it reaches
the value of the sock.connectiontout and the connection is terminated. The sock.
toutcounter then stays at the value of sock.connectiontout.
If the sock.connectiontout is at 0, the maximum value that the sock.toutcounter
can reach is 1. That is, the sock.toutcounter will be at 0 after the data exchange,
and at 1 if at least 0.5 seconds have passed since the last data exchange.
.Tx2buffrq Method
Function:
For the selected socket (selection is made through
) pre-requests "numpages" number of buffer
pages (1 page= 256 bytes) for the TX2 buffer of the
socket.
Syntax:
sock.tx2buffrq(numpages as byte) as byte
Returns:
Actual number of pages that can be allocated (Byte).
See Also:
Part
Description
numpages
Requested numbers of buffer pages to allocate.
Details
The TX2 buffer is required when inband commands are enabled (
= 1- YES), without it the socket won't be able to TX data.
Returns actual number of pages that can be allocated. Actual allocation happens
when the
method is used. Unlike for TX or RX buffers there is no
property to read out actual TX2 buffer capacity in bytes. This capacity can be
calculated as 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.
tx2buffrq. "-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.
290
330
340
362
337
217
358