Description: Summary: Java source code, network-related, FTP
Java prepared to achieve an FTP client program, through which clients connect to the specified server. useFtpApplet class inherits Applet class, init () is initialized in the realization of this Applet, set the layout and background, the establishment of the text, labels and text fields.
Connect () method uses the host address, user name and password as parameters to establish a connection with the host. FtpClient using the new generation of new class instance, use login () method FTP server, call showFileContents () method to display the contents of the file.
Stop () method uses FtpClient object closeServer () method to close the server connection.
Action () method listening button, and button events are processed through the use of judgment statement evt.target == BtnConn to track whether the user click the Connect button, if you click an event occurs, by calling the connect () method to connection. If evt.target == BtnClose calling
To Search:
File list (Check if you may need any files):
USEFTPAPPLET\FTP 客户端的实现\USEFTPAPPLET.HTML
............\................\USEFTPAPPLET.JAVA
............\测试网络速度\Project1.cfg
............\............\Project1.dof
............\............\Project1.dpr
............\............\Project1.res
............\............\Unit1.dcu
............\............\Unit1.dfm
............\............\Unit1.pas
............\FTP 客户端的实现
............\测试网络速度
USEFTPAPPLET