基于Socket的多客户端网络聊天系统的开发与设计(4)
时间:2025-07-11
时间:2025-07-11
基于Socket的简易网络聊天系统的开发与设计
Development and design of multiple client network chat system
based on Socket
Student:zhuang wei jie(Faclty Asviser:lin jian bing)
Abstract: With the development of network technology in the campus of popularization, chat
tools has become an indispensable tool in exchange, more and more students of all
ages. There are a lot of good chat tools on the market, with the most extensive and
most accepted with Tencent QQ, MSN, Renren and so on, but the client chat tool is
designed according to the characteristics of internal school which occupies a space
for one person in the industry in the Internet chat. The development of this system
is mainly two aspects of server and client. The server through socket to establish a
connection with the server, the server will accept the request of the client, and
according to the requirements of the client message forwarding, refresh user
information. The latter through a connection with the server, carries on
communication between P2P client. Which uses the principle of LAN
communication mechanism, establish multi thread mechanism by implementing
the Runnable interface. Computer network programming technology is used in the
development, such as C\/S model, multithreading technology, network
communication etc.. In the network communication, reading messages and send
messages, is to achieve the exchange using Stream, which introduced the exchange
to achieve a construction of information, including the basic methods of software
engineering. Through these analyses, the client chat tool system using Java
language, the system is based on Eclipse platform. First establishes the system
application prototype, then revised and improved, until the complete release
system.
Key words: LAN Chat Socket Java Eclipse
2
上一篇:中药化学复习题含答案
下一篇:天津安全文明施工措施费用系数表