BytesLeftToSend property

From Xojo Documentation

Revision as of 20:54, 3 December 2020 by PLefebvre (talk | contribs) (Classes implementing the BytesLeftToSend property: Replaced deprecated Serial with SerialConnection)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Read-Only Property (As Integer )
IntegerValue = aSerial.BytesLeftToSend

Supported for all project types and targets.

The number of bytes left in the queue remaining to be sent.

Notes

This enables you to create a synchronous socket without needing to subclass it.

For a SMTPSocket object, BytesLeftToSend is not a valid way to know whether the socket sent mail. Close the socket too fast and data may still be on the way. Also the socket has to logout properly.

Classes implementing the BytesLeftToSend property

IPCSocket
SerialConnection
TCPSocket

Sample Code

TextField1.Text = Str(Me.BytesLeftToSend)