BytesLeftToSend property

From Xojo Documentation

(Redirected from IPCSocket.BytesLeftToSend)

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.


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

Serial New in 2005r1
TCPSocket New in 5.5

Sample Code

TextField1.Text = Str(Me.BytesLeftToSend)