libftp

Section: C Library Functions (3)
Index Return to Main Contents
 

NAME

libftp - introduce to FTP library.  

SYNTAX


 #include <FtpLibrary.h>
 
 FtpConnect   (FTP **ftp,char *hostname) 
   - connect to remote host.
 
 FtpUser      (FTP *ftp,char *username)
   - send user name to remote daemon.
 
 FtpPassword  (FTP *ftp,char *password)
   - send password.
 
 FtpAccount   (FTP *ftp,char *account)
   - send account name.
 
 FtpLogin     (FTP **ftp,char *user,
               char *pass,char *account)
 
 FtpLogin     (FTP **ftp,char *user,
               char *pass,NULL)
   - full login to remote host.
 
 FtpChdir     (FTP *ftp,char *directory)
   - change remote working directory.
  
 FtpMkdir     (FTP *ftp,char *directory)
   - change remote working directory.
 
 FtpRm        (FTP *ftp,char *file)
   - erase remote file.
 
 FtpType      (FTP *ftp,char type)
   - set file type
 
 FtpAscii     (FTP *ftp)
   - set file type to ASCII.
 
 FtpBinary    (FTP *ftp)
   - set file type to BINARY.
 
 FtpPwd       (FTP *ftp)
   - get working directory.
 
 FtpBye       (FTP *ftp)
   - Close ftp connection.
 
 FtpCommand   (FTP *ftp,char *command,
               param,ans1,ans2,...,EOF)
   - Send command to remote daemon,command for remote daemon making by sscanf(x,command,param).If deamon return answer but not equivalent answer lists then if set error handler ( by SetErrorHandler ) then call it., else return answer by negative sing.
 FtpData     (FTP *ftp,char *command,param,mode)
 Open data connection to remote host.command and param send to remote daemon,mode is "r" or "w".Before call it subroutine , you can read/write by use ftp->data file structure.
 
 FtpOpenRead  (FTP *ftp,char *file)
   - Open file for read.
 
 FtpOpenWrite (FTP *ftp,char *file)
   - Open file for write.
 
 FtpOpenAppend (FTP *ftp,char *file)
   - Open file for append.
 
 FtpOpenDir   (FTP *ftp,char *pater)
   - Open directory brief list from remote host.
 
 FtpClose     (FTP *ftp)
   - Close file.
 
 FtpGetFile   (FTP *ftp,char *file)
   - Send get command to remote daemon.
 
 FtpPutFile   (FTP *ftp,char *file)
   - Send put command to remote daemon.
 
 FtpRead      (FTP *ftp)
   - Read one character from remote host.
 
 FtpWrite     (FTP *ftp,char c)
   - Write one character to remote host.
 
 FtpGetString (FTP *ftp,char *s)
   - Get String from data connection.
 
 FtpGet       (FTP *ftp,char *remotefile,char *localfile)
 FtpPut       (FTP *ftp,char *localfile,char *remotefile)
 FtpDir       (FTP *ftp,char *outfile)
 FtpDirectory (FTP *ftp,char *pater,char *outfile)
   - Transfer file or lists.
 
 FtpFullOpen  (char *filename,char *mode)
   - Open file.return pointer to structure FILE.          filename: host/user/password:file

        mode:     "r","w" or "a".
 
 FtpFullClose ( FILE * )
   - Close file opened by FtpFullOpen.
 
 FtpSetErrorHanler(FTP *ftp,STATUS (*handler)())
 FtpSetDebugHanler(FTP *ftp,STATUS (*handler)())
   - Set error and debug handlers.
 
 FtpDebug(FTP *ftp)
   - Set standard error and debug handlers.
   

AUTHORS


  Oleg Orel 
  e-mail: orel@oeaix.oea.ihep.su 


 

Index

NAME
SYNTAX
AUTHORS

This document was created by man2html, using the manual pages.
Time: 06:45:35 GMT, December 12, 2024