WAITENDFLOWTRANSFER
WAITENDFLOWTRANSFER(nTime AS INTEGER) AS INTEGER
Waits for the flow to flow transfer to end during <nTime> (in seconds).
The function returns 2 if the transfer is finished, 1 if the transfer is still in progress at the end of the timer, -1 on disconnection, or 0 if the transfer is not active.
The function can be called on both ports involved in the transfer.