Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 14 15 package ftpserver; 16 17 import org.quickserver.net.*; 18 import org.quickserver.net.server.*; 19 20 import java.io.*; 21 import java.util.*; 22 import java.util.logging.*; 23 24 public class FtpServer { 25 public static String version = "0.3"; 26 27 public static void main(String args[]) { 28 QuickServer ftpServer = new QuickServer(); 29 30 String confFile = "conf"+File.separator+"FtpServer.xml"; 31 Object config[] = new Object [] {confFile}; 32 if(ftpServer.initService(config) == true) { 33 try { 34 ftpServer.startServer(); 35 ftpServer.startQSAdminServer(); 36 } catch(AppException e){ 37 System.out.println("Error in server : "+e); 38 e.printStackTrace(); 39 } 40 } 41 } 42 43 private static void usage() { 44 System.err.println( 45 "---------------------------\n"+ 46 "QuickFTPServer v "+version+" Usage \n"+ 47 "---------------------------\n"+ 48 "ftpserver help\n"+ 49 "\tDisplays this help screen.\n"+ 50 "ftpserver [ftp_root_dir]\n"+ 51 "\tDefault are \n"+ 52 "\t Dir : User Home Dir"); 53 } 54 } 55
| Popular Tags
|