Unit ftpsend

DescriptionusesClasses, Interfaces and ObjectsFunctions and ProceduresTypesConstantsVariables

Description

FTP client protocol

Used RFC: RFC-959, RFC-2228, RFC-2428

Classes, Interfaces and Objects

NameDescription
Class TFTPListRec Object for holding file information
Class TFTPList This is TList of TFTPListRec objects.
Class TFTPSend Implementation of FTP protocol.

Functions and Procedures

Overview

function FtpGetFile(const IP, Port, FileName, LocalFile, User, Pass: string): Boolean;
function FtpPutFile(const IP, Port, FileName, LocalFile, User, Pass: string): Boolean;
function FtpInterServerTransfer( const FromIP, FromPort, FromFile, FromUser, FromPass: string; const ToIP, ToPort, ToFile, ToUser, ToPass: string): Boolean;

Description

function FtpGetFile(const IP, Port, FileName, LocalFile, User, Pass: string): Boolean;

A very useful function, and example of use can be found in the TFtpSend object. Dowload specified file from FTP server to LocalFile.

function FtpInterServerTransfer( const FromIP, FromPort, FromFile, FromUser, FromPass: string; const ToIP, ToPort, ToFile, ToUser, ToPass: string): Boolean;

A very useful function, and example of use can be found in the TFtpSend object. Initiate transfer of file between two FTP servers.

function FtpPutFile(const IP, Port, FileName, LocalFile, User, Pass: string): Boolean;

A very useful function, and example of use can be found in the TFtpSend object. Upload specified LocalFile to FTP server.

Types

NameDescription
TLogonActions = array [0..17] of byte;

Array for holding definition of logon sequence.

TFTPStatus

Procedural type for OnStatus event. Sender is calling TFTPSend object. Value is FTP command or reply to this comand. (if it is reply, Response is True).

Constants

NameDescription
cFtpProtocol = 'ftp';  
cFtpDataProtocol = 'ftp-data';  
FTP_OK = 255;

Terminating value for TLogonActions

FTP_ERR = 254;

Terminating value for TLogonActions


Generated by PasDoc 0.8.8.2 on 2005-01-19 20:01:17