The FTP Client Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / FTP Client Object  
Properties Callback CurrentCommand ListContents ServerMessage
Methods ClearServerMessage Command CWD LIST Login PWD QUIT ReadControlChannel RETR STOR
Properties

Callback

Value Function
Access Put
Notes
  • Callback function protype:
    function FTPCallback(ftp, Eventtype, callCount, progress, total)
    {
    /*
    ftp: the ftp client object
    event type:
    	-1: internal error
    	1: Control Channel Connecting 
    	2: Control Channel Connected
    	3: Cotrol Channel Connection failed.
    	4: Waiting for server message
    	5: Sending command to server
    	6: Server message received
    	7: Controal Channel disconnected
    	8: Downloading list
    	9: Downloading file
    	10: Uploading file.
    callCont: call count of the same event.
    */
    }
    

CurrentCommand

Value BSTR
Access Get
Notes

ListContents

Value BSTR
Access Get, Put
Notes

ServerMessage

Value BSTR
Access Get
Notes
Methods

ClearServerMessage

Return Value
Notes

Command

Return Value
Arguments:
  • BSTR cmd
Notes

CWD

Return Value
Arguments:
  • BSTR dir
Notes

LIST

Return Value
Arguments:
  • BSTR fileName (Optional, default(""))
Notes

Login

Return Value
Arguments:
  • Object addressObj
  • BSTR userName
  • BSTR password
Notes

PWD

Return Value
Notes

QUIT

Return Value
Notes

ReadControlChannel

Return Value
Arguments:
  • BSTR data
Notes

RETR

Return Value
Arguments:
  • BSTR svrFileName
  • BSTR localFileName
  • BOOL binaryFileType
Notes

STOR

Return Value
Arguments:
  • BSTR localFile
  • BSTR serverFile
  • BOOL binaryMode
Notes