TFTP Public Members

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TFTP Public Members

The following functions and variables are available to the stack application.

Enumerations
 
Name 
Description 
 
Standard error codes as defined by TFTP spec. Use to decode value retuned by TFTPGetError(). 
 
Standard error codes as defined by TFTP spec. Use to decode value retuned by TFTPGetError(). 
 
File open mode as used by TFTPFileOpen(). 
 
File open mode as used by TFTPFileOpen(). 
 
Enum. of results returned by most of the TFTP functions. 
 
Enum. of results returned by most of the TFTP functions. 
Functions
 
Name 
Description 
 
Sends file closing messages. 
 
Gets a data byte from data that was read. 
 
Determines if the file was closed. 
 
Determines if file has been opened. 
 
Determines if a data block is ready to be read. 
 
Determines if the TFTP connection is open. 
 
Determines if data can be written to a file. 
 
Initializes TFTP module. 
 
Prepares and sends TFTP file name and mode packet. 
 
PIC18 ROM argument implementation of TFTPOpenFile 
 
Write a byte to a file. 
 
Returns the TFTP file upload status started by calling the TFTPUploadRAMFileToHost() or TFTPUploadFragmentedRAMFileToHost() functions. 
 
Uploads an random, potentially non-contiguous, array of RAM bytes as a file to a remote TFTP server. 
 
Uploads a contiguous array of RAM bytes as a file to a remote TFTP server. 
Macros
 
Name 
Description 
 
Macro: void TFTPClose(void)
Closes TFTP client socket. 
 
Macro: WORD TFTPGetError(void)
Returns previously saved error code. 
 
Macro: BOOL TFTPIsFileOpenReady(void)
Checks to see if it is okay to send TFTP file open request to remote server. 
 
Status codes for TFTPGetUploadStatus() function. Zero means upload success, >0 means working and <0 means fatal error. 
 
This is macro TFTP_UPLOAD_CONNECT. 
 
This is macro TFTP_UPLOAD_CONNECT_TIMEOUT. 
 
This is macro TFTP_UPLOAD_GET_DNS. 
 
This is macro TFTP_UPLOAD_HOST_RESOLVE_TIMEOUT. 
 
This is macro TFTP_UPLOAD_RESOLVE_HOST. 
 
This is macro TFTP_UPLOAD_SEND_DATA. 
 
This is macro TFTP_UPLOAD_SEND_FILENAME. 
 
This is macro TFTP_UPLOAD_SERVER_ERROR. 
 
This is macro TFTP_UPLOAD_WAIT_FOR_CLOSURE. 
Module
Structures
 
Name 
Description 
 
This is type TFTP_CHUNK_DESCRIPTOR. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.