343
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Please, remember that uncommitted data in the TX buffer is not taken into account
for on_sock_data_sent event generation.
On_sock_event Event
Function:
Notifies your program that the socket state has changed.
Declaration:
on_sock_event(newstate as pl_sock_state,
newstatesimple as pl_sock_state_simple)
See Also:
---
Part
Description
newstate
"Detailed" state of the socket at the time of event
generation.
newstatesimple
"Simplified" state of the socket at the time of event
generation.
Details
The newstate and newstatesimple arguments carry the state as it was at the
moment of event generation. This is different from
and
R/O properties that return current socket state). The newstate
argument uses the same set of constants as the sock.state. The newstatesimple
argument uses the same set of constants as the sock.statesimple. See
and
for detailed description of reported socket states.
Newtate and Newstatesimple arguments of the on_sock_event have been
introduced in the Tibbo Basic release
2.0
and
R/O properties which are no longer available.
On_sock_inband Event
Function:
At least one data byte is present in the CMD buffer (
>0).
Declaration:
on_sock_inband
See Also:
---
Details
method to extract the data from the CMD buffer.
Another on_inband_command event on a particular socket is never generated until
the previous one is processed. When the event handler is entered the sock.num is
automatically switched to the socket on which this event was generated.
On_sock_overrun Event
Function:
Data overrun has occurred in the RX buffer of the socket.
355
358
355
358
332
332
329
334