tfFtpUserExecute

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpUserExecute (ttUserFtpHandle ftpUserHandle);


Function Description

This function executes the FTP client main loop. This call is valid only if tfFtpNewSession() has been called in non-blocking mode, and tfFtpUserExecute() is not currently executing.


Parameters

  • ftpUserHandle
    The FTP session handle.


Returns

  • TM_ENOERROR
    Success.
  • TM_EWOULDBLOCK
    The current command has not yet completed, and tfFtpUserExecute() should be called again.
  • TM_EINVAL
    Invalid FTP handle.
  • TM_EACCES
    Blocking is currently on; this function should only be called when blocking is disabled.


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