登录
首页 » Windows开发 » 简单的Java聊天室系统

简单的Java聊天室系统

于 2022-03-23 发布 文件大小:2.57 MB
0 157
下载积分: 2 下载次数: 1

代码说明:

C/S实训开发模拟 运用Java程序编程聊天室,实现简单的聊天功能。它是以图形界面,线程,数据流等技术的综合应用。其界面主要采用了java.awt包,java.swing包以及java.util包等。程序实现了聊天室的基本功能,其中有: 1. 启动服务器; 2. 进入客户端界面; 3. 登录聊天室; 4. 发送信息(发送按钮); 5. 关闭服务器(关闭按钮)。 要实现用户与服务器相连接,就要用到Java网络编程的知识。当客户需要通信时,它们可以通过使用socket类建立套接字对象并连接在一起,当客户端对象建立后,客户端socket对象可以使用方法getInputStream()获得一个输入流,这个出入流的源和服务器的一个输出流的目的地刚好相同,所以,客户端用输入流可以读取服务器写入到输出流中的数据,客户端Socket对象使用方法getOutputStream()获得一个输出流,这个输出流的目的地和服务器端的一个输入流的源刚好相同,因此服务器用输入流可以读取客户写入到输出流中的数据。为了能使客户成功地连接到服务器,服务器必须建立一个ServerSocket对象,该对象通过将客户端的套接字对象和服务器端的一个套接字对象连接起来,从而达到连接的目的。当服务器的ServerSocket

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 对非模式对话框的简单应用
    对非模式对话框的简单应用-model for non-application of a simple dialog box
    2022-10-03 22:35:03下载
    积分:1
  • Zhang Limin Visual C# 2005
    张利民Visual C#2005有趣的小时钟程序时钟源有趣的程序重要技巧如下:q双击时钟到任何地方,我们都可以删除或恢复它的边框。用鼠标拖动到任何一个地方,我们可以改变它的时钟位置。
    2022-02-14 07:53:29下载
    积分:1
  • ATL object wizard is just not restricted for ATL COM appwizards. It can be used
    ATL object wizard is just not restricted for ATL COM appwizards. It can be used in any application provided the project meets certain requirements. You can use this appwizard to create ordinary(non - COM) Win32 application utilizing the ATL window classes or develop console OLEDB consumer applications. ATL对象向导不限于 ATL COM 应用程序向导。它也可以用于满足要求的项目的任何应用程序中。你可以使用这个向导来创建普通的(非COM) Win32 应用程序,使用ATL窗口类或开发控制台OLEDB消费者应用程序。 来源: http://www.codeguru.com/atl/atlcompappwz.shtml-ATL object wizard is just not restricted for ATL COM appwizards. It can be used in any application provided the project meets certain requirements. You can use this appwizard to create ordinary (non- COM) Win32 application utilizing the ATL window classes or develop console OLEDB consumer applications. the ATL object guide is not restricted in ATL the COM application procedure guide. It also may use in the project any application procedure which answers the purpose. You may use this guide to found (non- COM) ordinary the Wi
    2022-02-10 10:47:45下载
    积分:1
  • 对单链表的实现处理全集,用C语言编写,随便下载
    对单链表的实现处理全集,用C语言编写,随便下载 -The realization of a single list of The Complete Works of treatment, using C language, just download
    2022-03-10 11:08:08下载
    积分:1
  • 图书馆管理系统main
    图书馆管理系统main-main library management system
    2023-07-16 18:10:03下载
    积分:1
  • C series of the small program, a very good thing.
    用C++编的小程序,很好的。-C series of the small program, a very good thing.
    2022-02-12 21:16:19下载
    积分:1
  • 对象、 图书馆、 礼萨、 冲动、 阿里、 peyman、 哈桑、 迈赫迪、 habil、 新浪短信通利用
    无线 ad hoc 网络通常假设全方位 天线。在本文中,我们考虑设备 方向性天线。方向性天线有 已显示,提高效率和无线的能力 网络。几个 MAC 协议 [4、 14、 12、 20] 和 路由协议 [5、 2、 17] 已提出以 方向性天线的优势。 下一步我们提供背景上路由安全 协议和以往关于防止虫洞的工作 攻击。节 3 认为虫洞攻击和 分析其效力。节 4 引入了 方向性天线和描述天线模型我们 使用。第 5 节描述我们协议的验证 邻居关系。节 6 认为的影响 我们的网络连接和路由选择协议
    2022-07-08 22:46:05下载
    积分:1
  • disk disk information
    disk edit 查看磁盘信息-disk disk information
    2022-05-17 22:31:44下载
    积分:1
  • Ndis protocol driver to learn the good information. In the hope of the Internet...
    学习ndis协议驱动的好资料。在网上找的希望有帮助-Ndis protocol driver to learn the good information. In the hope of the Internet is helpful
    2022-01-26 19:41:02下载
    积分:1
  • 用C++,OpenGL和GLSL实现GPU排序技术
    用C++,OpenGL和GLSL实现GPU排序技术-Using C , OpenGL and GLSL realize Sort GPU technology
    2022-05-17 09:59:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载