2024年3月21日发(作者:)
delphi idftp控件用法(Delphi idftp控件用法)
Delphi idftp control usage 2011-04-25 22:22FTP is a standard
protocol that is the easiest way to exchange files between a
computer and a network.
FTP is also an application protocol standard for applying
TCP/IP protocol.
FTP usually in the file upload to the server, a commonly used
way or from the server file transfer as a user, you can use FTP
with a very simple DOS interface, can also be provided by the
use of third party software (such as FLASHFXP) to the data
server to delete, rename and other operations.
Of course, before using these, you have to log on to the server
and log in with the specified username and password or
Anonymous.
You know, but let's just talk about it. Using DOS to operate
FTP, I'm not talking. Today I'm using IDFTP controls in INDY
components to make a FTP client software (very simple)
I'm going to talk about some of the properties of the IDFTP
control:
Host:FTP server address.
USER: user account number.
Password: password.
Passive: method for controlling FTP data connection. FTP data
transmission can be active and passive.
PORT is active mode, when the data channel is established, the
server to connect to others;
PASV is passive mode. When the data channel is set up, the server
is connected to others;
When establishing data channel, PORT mode or PASV mode, the
right of choice lies in the FTP client.
The passive in IDFTP is a Boolean data type. When True is active;
when false is passive.
The default port for Port:FTP service is 21.
The type of TransferType: transport file can be valued as
FtBinary (8 bit arbitrary file) and FtAscii (7 bit text file).
Description of SystemDesc:FTP server.
Several methods of IDFTP
The commonly used methods are as follows:
Connect: connects to the FTP server
Abort: stops the operation of FTP services.
Quit: closes the connection between the client and the server


发布评论