.\" This manual page was generated from the file FtpAccess.html. .TH FtpAccess 3 "06 November 1997" FTPlib .SH NAME FtpAccess \- Open a file or directory on the remote system. .SH "SYNOPSIS" .B "#include " .br .sp .BI "int FtpAccess(const char *" path ", int " typ ", int " mode ", " .RS .BI "netbuf *" nControl ", netbuf **" nData ");" .SH "PARAMETERS" .TP .B "path" Specifies the name of the remote file or directory to open. .TP .B "typ" Specifies the type of transfer to be performed. FTPLIB_DIR performs a terse directory. FTPLIB_DIR_VERBOSE performs a verbose directory. FTPLIB_FILE_READ opens a remote file for reading. FTPLIB_FILE_WRITE creates a remote file and readies it for writing. .TP .B "mode" Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE. .TP .B "nControl" A handle returned by FtpConnect(). .TP .B "nData" Specifies the address to store a pointer to the created data handle. .SH "DESCRIPTION" .LP FtpAccess() opens a remote file or directory and returns a handle for the calling program to use to transfer data. .SH "RETURN VALUE" .LP Returns 1 if successful or 0 on error.