⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.java

📁 这个是一个用java实现的tftp程序。其中包括客户端和用户端
💻 JAVA
字号:
/*
 * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -