TApxProtocol.ZmodemFinishRetry

TApxProtocol

property ZmodemFinishRetry : Word;

Default: 0

Specifies the number of times to retry the final handshake of a Zmodem protocol session.

A Zmodem transmitter signals that it has no more files to transmit by sending a ZFin frame. The receiver acknowledges this by sending its own ZFin frame. The transmitter then sends "OO" as the final frame of the transfer.

The Zmodem specification indicates that this portion of the protocol isn't critical (since all files have already been completely received) and that a timeout while waiting for the response should be ignored. However, this strategy doesn't work well with DSZ, a Zmodem implementation by Omen Technology, Inc.

DSZ retries after a ZFin timeout, which can sometimes cause unneeded packet transfers when the handshake timeout is 10 seconds or less. To handle this situation, Async Professional CLX mimics DSZ when ZmodemFinishRetry is set a non-zero value. It waits FinishWait seconds for a response.

ZmodemFinishRetry is the number of times to resend the ZFin in response to a timeout. When ZmodemFinishRetry is zero the ZFin is sent only once. If no response is received, the protocol finishes without an error.

See also: FinishWait