TFTPIsGetReady Function

Microchip TCP/IP Stack

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

Waits for data block. If data block does not arrive within specified timeout, it automatically sends out ack for previous block to remind server to send next data block. If all attempts are exhausted, it returns with TFTP_TIMEOUT.

Preconditions

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

Returns

TFTP_OK if it there is more data byte available to read 

TFTP_TIMEOUT if timeout occurred waiting for new data. 

TFTP_END_OF_FILE if end of file has reached. 

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

TFTP_NOT_READY if still waiting for new data.

Side Effects

None

Remarks

By default, this funciton uses "octet" or binary mode of file transfer.

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