tfFtpType

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpType (
ttUserFtpHandle ftpUserHandle,
int type
);


Function Description

This function sets the transfer type to either binary or ASCII.


Parameters

  • ftpUserHandle
    The FTP session handle.
  • type
    The FTP transfer type: either TM_TYPE_BINARY or TM_TYPE_ASCII.


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_SYNTAXCMD
    Syntax error, command unrecognized.
  • TM_FTP_SYNTAXARG
    Syntax error in parameters or arguments.
  • TM_FTP_NOCMDPARAM
    Command not implemented for that parameter.
  • TM_FTP_SERVNAVAIL
    Service not available, closing TELNET connection.
  • TM_FTP_NOTLOGIN
    Not logged in.


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