TFTPCloseFile Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TFTPCloseFile Function
C
void TFTPCloseFile();
Description

If file is opened in read mode, it makes sure that last ACK is sent to server If file is opened in write mode, it makes sure that last block is sent out to server and waits for server to respond with ACK.

Preconditions

TFTPOpenFile() was called and TFTPIsFileOpened() had returned with TFTP_OK.

Returns

None

Side Effects

None

Remarks

TFTPIsFileClosed() must be called to confirm if file was really closed.

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