TFTPIsPutReady Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TFTPIsPutReady Function
C
TFTP_RESULT TFTPIsPutReady();
Description

Waits for ack from server. If ack does not arrive within specified timeout, it it instructs application to retry last block by returning TFTP_RETRY. 

If all attempts are exhausted, it returns with TFTP_TIMEOUT.

Preconditions

TFTPOpenFile() is called with TFTP_FILE_MODE_WRITE and TFTPIsFileOpened() returned with TRUE.

Returns

TFTP_OK if it is okay to write more data byte. 

TFTP_TIMEOUT if timeout occurred waiting for ack from server 

TFTP_RETRY if all server did not send ack on time and application needs to resend last block. 

TFTP_ERROR if remote server returned ERROR. Actual error code may be read by calling TFTPGetError() 

TFTP_NOT_READY if still waiting...

Side Effects

None

Remarks

None

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.