340
Platforms
©2000-2008 Tibbo Technology Inc.
Syntax:
sock.nextpacket
Returns:
---
See Also:
---
Details
For UDP, the
method only extracts the data from a single UDP
datagram even if several datagrams are stored in the RX buffer. When incoming
UDP datagram processing is based on the
event the use
of the sock.nextpacket method is not required since each invocation of the
on_sock_data_arrival event handler "moves" processing to the next UDP
datagram.
The method is useful when it is necessary to move to the next datagram without
re-entering on_sock_data_arrival event handler. Therefore, sock.nextpacket is only
necessary when the application needs to process several incoming UDP packets at
once and within a single event handler.
.Notifysent Method
Function:
Using this method for the selected socket (selection is
made through sock.num) will cause the
event to be generated when the
amount of committed data in the TX buffer is found to be
below "threshold" number of bytes.
Syntax:
notifysent(threshold as word)
Returns:
---
See Also:
Part
Description
threshold
Amount of bytes in the TX buffer below which the event it
so be generated.
Details
Only one on_sock_data_sent event will be generated each time after the
sock.notifysent is invoked. This method, together with the on_sock_data_sent
event provides a way to handle data sending asynchronously.
, the trigger you set won't take into account any
uncommitted data in the TX buffer.
.Num Property
Function:
Sets/returns the number of currently selected socket.
Type:
Byte
333
342
342
363