362
Platforms
©2000-2008 Tibbo Technology Inc.
.Tx2len R/O Property
Function:
For the selected socket (selection is made through
) returns the amount of data waiting to be sent
out in the TX2 buffer.
Type:
Word
Value Range:
0-65535, default= 0 (0 bytes)
See Also:
Details
The TX2 buffer is needed to transmit outgoing TCP data when inband commands
(messages) are enabled (
= 1- YES). If your application
needs to make sure that all data is actually sent out from the socket then it must
verify that both TX and TX2 buffers are empty.
.Txbuffrq Method
Function:
For the selected socket (selection is made through
) pre-requests "numpages" number of buffer
pages (1 page= 256 bytes) for the TX buffer of the
socket.
Syntax:
sock.txbuffrq(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
Actual allocation happens when the
method is used. The socket is
unable to TX data if its TX 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.txbuffsize=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.txbuffrq. "-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.
340
364
337
340
361
217
363
358