tfTftpUserExecute

Jump to: navigation, search

Table of Contents >> Application Reference >> TFTP Client API


#include <trsocket.h>


ttUser32Bit tfTftpUserExecute (void);


Function Description

This function executes the TFTP client's main loop. This call is valid only if tfTftpGet() or tfTftpPut() has been called in non-blocking mode and tfTftpUserExecute() is not currently executing.



Returns

  • >= 0
    The tfTftpGet() transfer was successful. This value is the size of the file received.
  • TM_TFTP_SUCCESS
    The tfTftpPut() transfer was successful.
  • TM_TFTP_EXECUT
    This value is returned while the transfer is in progress.
  • TM_TFTP_TIMEOUT
    A TFTP operation timed out.
  • TM_TFTP_EBUF
    Insufficient memory.
  • TM_TFTP_ESOCK
    A socket error occurred.
  • TM_TFTP_ERROR
    General TFTP error.
  • TM_TFTP_UNDEF
    The TFTP server returned an "Undefined error code" message in the error packet.
  • TM_TFTP_NOTFOUND
    The TFTP server returned a "File not found" message in the error packet.
  • TM_TFTP_NOUSER
    The TFTP server returned a "No such user" message in the error packet.
  • TM_TFTP_BADOP
    The TFTP server returned an "Illegal TFTP operation" message in the error packet.
  • TM_TFTP_BADID
    The TFTP server returned an "Unknown transfer ID" message in the error packet.
  • TM_TFTP_ACCESS
    The TFTP server returned an "Access violation" message in the error packet.
  • TM_TFTP_NOSPACE
    The TFTP server returned a "Disk full/alloc exceeded" message in the error packet.
  • TM_TFTP_FILEEXISTS
    The TFTP server returned a "File already exists" message in the error packet.


Table of Contents >> Application Reference >> TFTP Client API