摘 要:随着互联网发展的脚步越来越快,许多聊天软件也快速发展了起来,其中比较好的就有国内腾讯的QQ 和微信等等。这些软件都必须有两个部分组成:第一部分是网上聊天服务器代码,第二部分是网上聊天服务器代码。服务器代码能够实现刷新列表、显示IP地址、端口号、用户姓名并且能够通过建立缓冲池快速实现读取、转发客户端的信息,客户端则实现的是能够实现与客户端的连接,客户端与客户端之间能够实现信息交流,并显示一些必要的信息,最后还要实现客户端与服务器、服务器与客户端之间的信息交流。在这里就要用到局域网的通信知识来实现多线程的通讯系统,用的就是通过建立起继承于Thread的方法。而编写程序这两个知识是必备的:一个是要有牢靠的java知识,另一个也要有一定的代码编程中网络编程知识,比如要对客户端和服务器端的特定模式、网络编程的一些设计方法和TCP/IP协议等都要有一定的了解。要实现通信功能流的方法是必不可少的,通过流能够实现通信的快速传递,除此之外还要知道一些软件的使用方法。42925
毕业论文关键词:局域网;多线程;Socket;Java;Eclipse
Based on the research of the realization of the Java multi-thread communication system
Abstract: with a lot of chat software also rapid development,including a good domestic tencent QQ and We Chat and so on.The development of the system mainly includes two parts: the first part is online chat server code, the second part is online chat server code.Server code by creating a server Socket Socket, can achieve the refresh list, show the IP address, port, user name and be able to read rapidly through the establishment of the buffer pool, forwarding the client's information, can realize the information exchange between the client and the client, and shows some necessary information, and finally to achieve the client and the server and the communication between the server and the client.Which would use the LAN communication principle, such as on the client/server mode, network programming design method, such as TCP/IP protocol.When writing code to achieve rapid exchange of information by using the method of flow, and to introduce implementation to realize the system flow analysis, and some methods of software engineering.
Key words: Local area network ;Multithreading;The Socket;Java;The Eclipse
目录
摘要 1
引言 2
1.Java语言的了解 2
1.1 Java语言的概述 2
1.2 Java言的发展背景语 2
1.3 Java语言的应用领域 3
1.4 Java语言的特点 4
2.Eclipse开发工具 5
2.1 Eclipse的特点和发展 5
2.2 Eclipse和AIP开发和查询平台 5
3.客户机和服务器 7
3.1 客户机和服务器的概念 7
3.2 客户机和服务器的实现 7
3.3 客户机和服务器范例的应用 8
3.4 客户机和服务器交换的原理 8
4.服务器的程序编写 9
4.1客户端和服务器的设计 9
4.2客户端编程运行的结果 10
4.3 服务器编程运行的结果 java多线程通信系统的设计:http://www.youerw.com/tongxin/lunwen_43563.html