.notifysent Method
Function: |
Using this method for the selected socket (selection is made through sock.num) will cause the on_sock_data_sent 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 |
The on_sock_data_sent event will be generated when the number of bytes in the TX buffer falls below this threshold. |
Details
Only one on_sock_data_sent event will be generated each time after sock.notifysent is invoked. This method, together with the on_sock_data_sent event, provides a way to handle data sending asynchronously.
Just like with sock.txfree, the trigger you set won't take into account any uncommitted data in the TX buffer.