Description: 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 the 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. Use new FtpClient generate a new instance of the class, using the login () method to log FTP server, call showFileContents () method to display the file contents.
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 users click the Connect button, if you click an event occurs, by calling the connect () method to perform connection. If evt.target == BtnClose
To Search:
File list (Check if you may need any files):
USEFTPAPPLET.JAVA\FTP 客户端的实现\USEFTPAPPLET.HTML
.................\................\USEFTPAPPLET.JAVA
.................\测试网络速度\Project1.cfg
.................\............\Project1.dof
.................\............\Project1.dpr
.................\............\Project1.res
.................\............\Unit1.dcu
.................\............\Unit1.dfm
.................\............\Unit1.pas
.................\FTP 客户端的实现
.................\测试网络速度
USEFTPAPPLET.JAVA