tfFtpRein

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpRein (ttUserFtpHandle ftpUserHandle);


Function Description

Resets current FTP connection to the state just following the initial connection. This requires that the user be authenticated again, using tfFtpLogin().


Parameters

  • ftpUserHandle
    The FTP session handle.


Returns

  • TM_ENOERROR
    Success.
  • TM_WOULDBLOCK
    This FTP session is non-blocking and the call did not complete.
  • TM_EACCES
    Previous command did not complete.
  • TM_ENOTCONN
    The user is not currently connected to a FTP server.
  • TM_EINVAL
    Invalid FTP session pointer.
  • TM_FTP_SERVREADY
    Service ready in n minutes (for exact time, use tfFtpGetReplyText() to retrieve full reply text).
  • TM_FTP_SERVNAVAIL
    Service not available, closing FTP connection.
  • TM_FTP_SYNTAXCMD
    Syntax error, command unrecognized.
  • TM_FTP_NOCMD
    Command not implemented.


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