TFTPIsFileOpened Function

Microchip TCP/IP Stack

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

Waits for remote server response regarding previous attempt to open file. If no response is received within specified timeout, fnction returns with TFTP_RETRY and application logic must issue another TFTPFileOpen().

Preconditions

TFTPOpenFile() is called.

Returns

TFTP_OK if file is ready to be read or written 

TFTP_RETRY if previous attempt was timed out needs to be retried. 

TFTP_TIMEOUT if all attempts were exhausted. 

TFTP_ERROR if remote server responded with error 

TFTP_NOT_READY if file is not yet opened.

Side Effects

None

Remarks

None

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