TCPSocket.SendProgress

From Xojo Documentation

Revision as of 22:04, 11 November 2019 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Event


TCPSocket.SendProgress(bytesSent as Integer, bytesLeft as Integer) As Boolean

Supported for all project types and targets.

Occurs when your network provider queues your data in chunks and is about to send the next chunk.

Notes

The parameters indicate the amount of progress that has been made during the send. Returns a Boolean.

Returning True from this event causes the send to be cancelled. This does not close the socket's connection; it only clears the buffer. After all of the data has been transferred you will get a final SendProgress event followed by a SendComplete event.

bytesSent is the number of bytes that were sent in the chunk, not the total number of bytes sent.