• 大小: 14.94MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-22
  • 语言: Java
  • 标签:

资源简介

收集数据信息并上传服务器,通过这些信息进行分析总结

资源截图

代码片段和文件信息

package tcpServer;

import java.awt.BorderLayout;  
import java.awt.frame;  
import java.awt.Label;  
import java.awt.event.WindowEvent;  
import java.awt.event.WindowListener;  
  
public class ServerWindow extends frame{  
    private SocketServer server;  
    private Label label;  
      
    public ServerWindow(String title){  
        super(title);  
        server = new SocketServer(8888);  
        label = new Label();  
        add(label BorderLayout.PAGE_START);  
        label.setText(“服务器已经启动“);  
        this.addWindowListener(new WindowListener() {  
            @Override  
            public void windowOpened(WindowEvent e) {  
                new Thread(new Runnable() {           
                    @Override  
                    public void run() {  
                        try {  
                            server.start();  
                        } catch (Exception e) {  
                            e.printStackTrace();  
                        }  
                    }  
                }).start();  
            }  
              
            @Override  
            public void windowIconified(WindowEvent e) {  
            }  
              
            @Override  
            public void windowDeiconified(WindowEvent e) {  
            }  
              
            @Override  
            public void windowDeactivated(WindowEvent e) {  
            }  
              
            @Override  
            public void windowClosing(WindowEvent e) {  
                 server.quit();  
                 System.exit(0);  
            }  
              
            @Override  
            public void windowClosed(WindowEvent e) {  
            }  
              
            @Override  
            public void windowActivated(WindowEvent e) {  
            }  
        });  
    }  
    /** 
     * @param args 
     */  
    public static void main(String[] args) {  
        ServerWindow window = new ServerWindow(“文件上传服务端“);   
        window.setSize(300 300);   
        window.setVisible(true);  
    }  
  
}  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-02 11:09  tcpServer\
     文件         301  2017-08-26 10:30  tcpServer\.classpath
     文件         385  2017-08-26 10:30  tcpServer\.project
     目录           0  2018-02-02 11:09  tcpServer\.settings\
     文件         598  2017-08-26 10:30  tcpServer\.settings\org.eclipse.jdt.core.prefs
     目录           0  2018-02-02 11:09  tcpServer\bin\
     目录           0  2018-02-02 11:09  tcpServer\bin\tcpServer\
     文件        1000  2017-09-12 19:34  tcpServer\bin\tcpServer\ServerWindow$1$1.class
     文件        1668  2017-09-12 19:34  tcpServer\bin\tcpServer\ServerWindow$1.class
     文件        1262  2017-09-12 19:34  tcpServer\bin\tcpServer\ServerWindow.class
     文件        1023  2017-09-12 19:39  tcpServer\bin\tcpServer\SocketServer$FileLog.class
     文件        5546  2017-09-12 19:39  tcpServer\bin\tcpServer\SocketServer$SocketTask.class
     文件        3042  2017-09-12 19:39  tcpServer\bin\tcpServer\SocketServer.class
     文件        1934  2017-09-12 19:34  tcpServer\bin\tcpServer\StreamTool.class
     目录           0  2018-02-02 11:09  tcpServer\src\
     目录           0  2018-02-02 11:09  tcpServer\src\tcpServer\
     文件        2149  2017-08-28 17:13  tcpServer\src\tcpServer\ServerWindow.java
     文件        8254  2017-09-12 19:39  tcpServer\src\tcpServer\SocketServer.java
     文件        2336  2017-08-26 10:43  tcpServer\src\tcpServer\StreamTool.java
     目录           0  2018-02-02 11:09  traffic\
     文件         475  2017-07-28 09:12  traffic\.classpath
     文件         843  2017-07-28 09:12  traffic\.project
     目录           0  2018-02-02 11:09  traffic\.settings\
     文件         177  2017-07-28 09:12  traffic\.settings\org.eclipse.jdt.core.prefs
     文件        2445  2017-08-04 08:37  traffic\AndroidManifest.xml
     目录           0  2017-07-28 09:12  traffic\assets\
     目录           0  2018-02-02 11:09  traffic\bin\
     文件        2445  2017-08-04 08:37  traffic\bin\AndroidManifest.xml
     目录           0  2017-09-12 19:34  traffic\bin\classes\
     文件       39140  2017-09-17 09:53  traffic\bin\classes.dex
     目录           0  2017-09-12 19:34  traffic\bin\classes\com\
............此处省略175个文件信息

评论

共有 条评论

相关资源