- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
PAGE
摘 要
JAVA语言是目前Internet上大型的WEB应用程序开发时使用得最热门的编程语言,本文描述了JAVA技术的特点以及在互联网上的使用情况,介绍这种技术的重要编程方法,并以JAVA开发技术为核心的网上聊天系统。
本系统利用Java实现基于C/S模式的聊天程序。聊天室共分为服务器端和客户端两部分,服务器端程序主要负责侦听客户端发来的消息,客户端需登录到服务端才可以实现正常的聊天功能。服务器端的主要实现:在特定端口上进行侦听,等待客户端连接;用户可以配置服务端的侦听端口,默认端口为8888;向已经连接到服务端的用户发送系统消息;统计在线人数;当停止服务时,断开所有的用户连接。客户端的主要功能为:连接到已经开启服务的服务端;用户可以配置要连接服务器端的IP地址与端口号;用户可以配置连接后显示的用户名;当服务器端开启的话,用户可以随时登录与注销;用户可以向所有人或某一个人发送消息。从而客户与客户之间以及客户与服务器之间可以简单方便地进行通信。
主要使用Sun公司提供Java语言、jdk开发环境及套接字通信socket技术,完成了对服务器端和客户端之间相互交流功能的实现。
关键词:JAVA, SOCKET, JAVA聊天室
Abstract
The JAVA language is on present Internet when the large-scale WEB application procedure development used the most popular programming language, this article described the JAVA technology characteristic as well as on Internets service condition, introduced that this kind of technical the important programming method, and on-line chatted the system take the JAVA development technology as the core.
This system realizes using Java based on the C/S pattern chats the procedure. The chatroom altogether divides into the server end and the client side two parts, the news which the server end procedure primary cognizance interception client side sends, the client side must register the service end only then to be possible to realize normally chats the function. The server end main realizes: Carries on the interception on the specific port, the waiting client side connection; The user may dispose the service end the interception port, tacitly approves the port is 8888; To already connected the service end the user transmitting system news; Counts the online population; When the stop serves, separates all user connection. The client side major function is: Connected already opened the service the service end; The user may dispose must connect the server end the IP address and the port number; After the user may dispose the connection, demonstrated user; When the server end opening words, the user may momentarily register with logging out; The user ma
您可能关注的文档
- 《基于AT87C552单片机的井下瓦斯浓度智能传感器的设计》-毕业论文.doc
- 《基于AT89C2O51的电动车车速显示电路设计(硬件)说明书》-毕业论文.doc
- 《基于AT89C51单片机的SLE4442逻辑加密存储卡的设计》-毕业论文.doc
- 《基于AT89C51单片机的抽油烟机的设计》-毕业论文.doc
- 《基于AT89C51单片机的步进电机控制系统》-毕业论文.doc
- 《基于AT89C51单片机的步进电机的驱动控制的设计》-毕业论文.doc
- 《基于AT89C51单片机的函数信号发生器设计》-毕业论文.doc
- 《基于AT89C51单片机的简易接触式IC卡控制系统》-毕业论文.doc
- 《基于AT89C51单片机的篮球记分牌设计》-毕业论文.doc
- 《基于AT89C51单片机的乳粉包装称重控制设计》-毕业论文.doc
文档评论(0)