Sock.Txfree R/O Property

Top  Previous  Next

 

Function:

For the selected socket (selection is made through sock.num) returns the amount of free space in the TX buffer in bytes.

Type:

Word | dword

Value Range:

platform-dependent, default= 0

See Also:

---

 


Details

The value returned by this property equals sock.txbuffsize - sock.txfree, and the latter includes both committed and uncommitted data (sock.newtxlen).

To achieve asynchronous data processing, use the sock.notifysent method to get on_sock_data_sent event once the TX buffer gains required amount of free space.

 

Older devices had smaller RAM sizes, so the value returned by this property was of the word type. On newer devices with larger RAM capacities this property has the dword type. Inspect the property's declaration on the platform you are using to make sure you know its type.