main.java

来自「这个是一个用java实现的tftp程序。其中包括客户端和用户端」· Java 代码 · 共 48 行

JAVA
48
字号
/*
 * Main.java
 *
 * Created on 2007年4月29日, 上午9:06
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package tftpd;

import java.net.*;
import java.io.*;

/**
 *
 * @author Administrator
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        // TODO code application logic here
        tftpServerAgent tftp_srv = new tftpServerAgent();
        tftp_srv.setDaemon(true);
        tftp_srv.start();
        
        tftp_srv.join();    //暂时先这么处理吧
//        byte[] buf = new byte[10];
//        byte b;
//        while (true) {
//            System.out.print(System.in.read());
//        }

    }
    
    //show the administrator's menu
    public void ShowMenu() {
        //String menu[] = new String[];
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?