347
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Part
Description
redir
Platform-specific. See the list of pl_redir constants in the
platform specifications.
Details
Data redirection (sometimes referred to as "buffer shorting") allows to arrange
efficient data exchange between ports, sockets, etc. in cases where no data
alteration or parsing is necessary, while achieving maximum possible throughput is
important.
The redir argument, as well as the value returned by this method are of "enum
pl_redir" type. The pl_redir defines a set of platform inter-object constants that
include all possible redirections for this platform. Specifying redir value of 0-
PL_REDIR_NONE cancels redirection. When the redirection is enabled for a
particular socket, the
event is not generated for this port.
Once the RX buffer is redirected certain properties and methods related to the RX
buffer will actually return the data for the TX buffer to which this RX buffer was
redirected:
will actually be returning the size of the TX buffer.
method will actually be clearing the TX buffer.
method will be showing the amount of data in the TX buffer.
.Remoteip R/O Property
Function:
For the currently selected socket (selection is made
through
) returns the IP address of the host
with which this socket had the most recent or currently
has a connection.
Type:
String
Value Range:
Default= "0.0.0.0"
See Also:
Details
The application cannot directly change this property, it can only specify the target
IP address for active opens through the
property.
For UDP connections, when the
event handler is entered,
the sock.remoteip will contain the IP address of the sender of the current datagram
being processed. Outside of the on_sock_data_arrival event handler, the property
will return the source IP address of the most recent datagram received by the
socket.
342
351
351
352
340
348
348
328
359
342