计算机与现代化 ›› 2009, Vol. 8 ›› Issue (8): 34-39.doi: 10.3969/j.issn.1006-2475.2009.08.010

• 网络与通信 • 上一篇    下一篇

基于P2P的即时通信系统的研究

李永明1,2   

  1. 1.江南大学信息工程学院,江苏 无锡 214121;2.江苏省无锡立信职教中心,江苏 无锡 214121
  • 收稿日期:2009-06-18 修回日期:1900-01-01 出版日期:2009-08-21 发布日期:2009-08-21

Research on Instant Messaging System Based on P2P

LI Yong-ming 1,2   

  1. 1.School of Information Technology, Jiangnan University, Wuxi 214121, China;2.Jiangsu Province Wuxi Lixin Education Center, Wuxi 214121, China
  • Received:2009-06-18 Revised:1900-01-01 Online:2009-08-21 Published:2009-08-21

摘要: 描述了一个简易的基于P2P的即时通信系统的设计、实现过程。本系统实现了网络中在线用户的实时信息传送以及文件传输功能。系统采用了混合P2P模式,其中服务器端程序采用多线程技术,用于登录节点的身份验证、状态信息查询;P2P网络中的信息通信直接在客户端节点之间进行。基于P2P的即时通信系统具有方便、高效、廉价、即时等优点,正在迅速成为个人应用和企业应用的重要工具。

关键词: P2P, 即时通信IM, 通信协议, 模式

Abstract: This article describes the design and realization process about a simple instant messaging system based on the P2P. This system implementes the functions of realtime information transmission as well as the file transferring for the online users on the network. The system uses the mixed P2P pattern, in which the server program adopts the multithread technology used in the identification authentication and the inquiry about condition information when registering clients. The information communication on the P2P network is carried on directly among the clients. The instant messaging system based on the P2P has many advantages. It is convenient, effective, inexpensive, instant and so on. Therefore it is rapidly becoming an important tool for the application during the individuals and enterprises.

Key words: P2P, instant message, communication protocol, model

中图分类号: