• 大小: 40KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-08
  • 语言: Java
  • 标签:

资源简介

完整版的,经过调试的一个java环境下的基于UDP协议的聊天程序,udp协议聊天程序、java开发、计算机网络课程设计

资源截图

代码片段和文件信息

package admin;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.regex.Pattern;

import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Client extends Jframe implements ActionListener {

private JPanel pane;
public JTextField ipName;
p

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        232  2014-03-13 09:36  peoject\udp\.classpath

     文件        383  2014-03-15 00:26  peoject\udp\.project

     文件        631  2014-03-15 01:11  peoject\udp\bin\admin\Client$1.class

     文件       5838  2014-03-15 01:11  peoject\udp\bin\admin\Client.class

     文件        631  2014-03-15 12:10  peoject\udp\bin\admin\Server$1.class

     文件       5839  2014-03-15 12:10  peoject\udp\bin\admin\Server.class

     文件       2512  2014-03-15 00:56  peoject\udp\bin\admin\TestClient.class

     文件       2512  2014-03-15 00:56  peoject\udp\bin\admin\TestServer.class

     文件       1101  2014-03-15 01:18  peoject\udp\bin\admin\UdpClient$1.class

     文件       2562  2014-03-15 01:18  peoject\udp\bin\admin\UdpClient$ThreadA.class

     文件       7830  2014-03-15 01:18  peoject\udp\bin\admin\UdpClient.class

     文件       2623  2014-03-15 00:56  peoject\udp\bin\admin\UdpClientSocket.class

     文件       1101  2014-03-15 01:18  peoject\udp\bin\admin\UdpServer$1.class

     文件       2562  2014-03-15 01:18  peoject\udp\bin\admin\UdpServer$ThreadA.class

     文件       7815  2014-03-15 01:18  peoject\udp\bin\admin\UdpServer.class

     文件       3400  2014-03-15 01:11  peoject\udp\bin\admin\UdpServerSocket.class

     文件       6632  2014-03-15 01:11  peoject\udp\src\admin\Client.java

     文件       6616  2014-03-15 12:10  peoject\udp\src\admin\Server.java

     文件       1907  2014-03-15 00:56  peoject\udp\src\admin\TestClient.java

     文件       1900  2014-03-15 00:56  peoject\udp\src\admin\TestServer.java

     文件       8366  2014-03-15 01:18  peoject\udp\src\admin\UdpClient.java

     文件       1786  2014-03-15 00:56  peoject\udp\src\admin\UdpClientSocket.java

     文件       8529  2014-03-15 01:18  peoject\udp\src\admin\UdpServer.java

     文件       3691  2014-03-15 01:11  peoject\udp\src\admin\UdpServerSocket.java

     目录          0  2014-03-15 00:27  peoject\udp\bin\admin

     目录          0  2014-03-15 00:24  peoject\udp\src\admin

     目录          0  2014-03-15 00:27  peoject\udp\bin

     目录          0  2014-03-15 00:27  peoject\udp\src

     目录          0  2014-03-15 00:24  peoject\udp

     目录          0  2014-03-15 00:24  peoject

............此处省略3个文件信息

评论

共有 条评论

相关资源