tfFtpMode

Jump to: navigation, search

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


#include <trsocket.h>


int tfFtpMode (
ttUserFtpHandle ftpUserHandle,
int mode
);


Function Description

This function sets the transfer mode for this session.


Parameters

  • ftpUserHandle
    The FTP session handle.
  • mode
    The mode to set. Must be one of the following:
  • TM_MODE_STREAM
  • TM_MODE_BLOCK
  • TM_MODE_COMPRESSED


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_EOPNOTSUPP
    Command not supported.


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