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

资源简介

java基于socket聊天室源代码.rar 注:供java socket编程的初学者学习使用,严禁用作作业抄袭和商业用途。若转载源代码,请注明原作者以及作者的博客地址。 项目名称:TCPChatRoomServer(服务器端),TCPChatRoomClient(客户端) 版本:v0.1.0 开发环境:MyEclipse 6.0,JDK 6 Update 4 功能:单播(TCP)(私聊);多播(UDP)(群聊);单播,解决了多线程同步的问题。

资源截图

代码片段和文件信息

package client;

import java.awt.Color;

import javax.swing.Jframe;
/**
 * @author 火柴天堂 
 * @blog http://blog.csdn.net/hepeng19861212
 * @email hepeng19861212@163.com
 * @version v0.1.0
 * @date 2008-12-16
 */
public class Client {
public static void main(String[] args) {
MainWindow frame = new MainWindow();
frame.setSize(620 500);
frame.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
frame.settitle(“TCP_ChatRoom---client“);
frame.setForeground(Color.LIGHT_GRAY);
frame.setVisible(true);
}
}

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

     文件        393  2008-12-16 01:23  TCPChatRoomClient\.project

     文件        294  2008-12-16 01:23  TCPChatRoomClient\.classpath

     文件         51  2008-12-16 01:24  TCPChatRoomClient\CVS\Root

     文件         19  2008-12-16 01:24  TCPChatRoomClient\CVS\Repository

     文件        114  2008-12-16 01:25  TCPChatRoomClient\CVS\Entries

     文件        629  2008-12-16 01:23  TCPChatRoomClient\.settings\org.eclipse.jdt.core.prefs

     文件         51  2008-12-16 01:25  TCPChatRoomClient\.settings\CVS\Root

     文件         29  2008-12-16 01:25  TCPChatRoomClient\.settings\CVS\Repository

     文件         60  2008-12-16 01:25  TCPChatRoomClient\.settings\CVS\Entries

     文件        631  2008-12-16 12:15  TCPChatRoomClient\bin\readme.txt

     文件        792  2008-12-16 12:10  TCPChatRoomClient\bin\client\Client.class

     文件       3928  2008-12-16 12:11  TCPChatRoomClient\bin\client\MainWindow.class

     文件       5286  2008-12-16 12:12  TCPChatRoomClient\bin\client\RadioListener.class

     文件       2558  2008-12-16 12:12  TCPChatRoomClient\bin\client\ReceiveThread.class

     文件       3399  2008-12-16 12:11  TCPChatRoomClient\bin\client\SendThread.class

     文件       2191  2008-12-16 12:11  TCPChatRoomClient\bin\client\multicast\MulticastRecvRunnable.class

     文件       2844  2008-12-16 12:12  TCPChatRoomClient\bin\client\multicast\MulticastSendRunnable.class

     文件        631  2008-12-16 12:15  TCPChatRoomClient\src\readme.txt

     文件         51  2008-12-16 01:25  TCPChatRoomClient\src\CVS\Root

     文件         23  2008-12-16 01:25  TCPChatRoomClient\src\CVS\Repository

     文件         14  2008-12-16 01:25  TCPChatRoomClient\src\CVS\Entries

     文件        537  2008-12-16 12:10  TCPChatRoomClient\src\client\Client.java

     文件       4079  2008-12-16 12:12  TCPChatRoomClient\src\client\RadioListener.java

     文件       4344  2008-12-16 12:11  TCPChatRoomClient\src\client\MainWindow.java

     文件       2581  2008-12-16 12:11  TCPChatRoomClient\src\client\SendThread.java

     文件       1699  2008-12-16 12:12  TCPChatRoomClient\src\client\ReceiveThread.java

     文件         51  2008-12-16 01:25  TCPChatRoomClient\src\client\CVS\Root

     文件         30  2008-12-16 01:25  TCPChatRoomClient\src\client\CVS\Repository

     文件        264  2008-12-16 01:25  TCPChatRoomClient\src\client\CVS\Entries

     文件       2064  2008-12-16 12:11  TCPChatRoomClient\src\client\multicast\MulticastSendRunnable.java

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

评论

共有 条评论

相关资源