文件名称:P2P-IM

  • 所属分类:
  • Internet/网络编程
  • 资源属性:
  • [Windows] [Visual C] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 491kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • l**
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

设计一个p2p聊天软件,由多个聊天客户端和一个中心服务器组成。各个聊天客户端可以两两相互发送消息。目的在于设计GUI,多线程和套接字编程。各个客户端用IP地址和TCP/IP监听端口号进行标识。每个客户提供一个名字,方便其它客户端。

此设计由两部分组成。

部分一:p2p聊天中各个成员管理。每个成员称为一个peer,要有一个中心的服务处理peer的登记和对已经登记的peer进行更新。



步骤1:一个peer选择一个名字,通过登记界面进行登记。

步骤2:服务器拥有一个公有IP,在一个众所周知的端口进行监听。Peer向服务器发送‘register’请求,同时发送自己的登记信息(如自己取的名字,自己的监听端口号等)。服务器收到‘register’请求后,如果这是每一个登记请求,服务器建立一个用于记录已经登记peer的列表(Peer List),否则更新Peer List。

步骤3:服务器向来登记的peer发送Peer List。PeerList 由一些活跃的peer组成,一个活跃的peer是在最近30秒内进行登记的peer

-The design of a p2p chat software, multiple chat client and a central server. Each chat client can two two send each other messages. Aims to design the GUI, multithreading and socket programming. Each client IP address and TCP/IP listening port number for identification. Each customer to provide a name, and convenient to other clients.

This design consists of two parts.

Part one: p2p chat management. Each member is called a peer, have a central service to deal with peer registration and to update already registered peer.



Step 1: a peer to select a name to be registered through the registration interface.

Step 2: The server has a public IP, in a well-known port listening. Peer to the server send register request, send the registration information (such as the name they take, their own listening port number, etc.). The server receives the request of the register , if this is per a registration request, the server to establish one for the record have been registered to the list o
(系统自动生成,下载前可以参看下载内容)

下载文件列表

Client

......\ChatDlg.cpp

......\ChatDlg.h

......\chatlog.txt

......\ChatPacket.cpp

......\ChatPacket.h

......\ChatSocket.cpp

......\ChatSocket.h

......\Client.aps

......\Client.clw

......\Client.cpp

......\Client.dsp

......\Client.dsw

......\Client.h

......\Client.ncb

......\Client.opt

......\Client.plg

......\Client.rc

......\ClientDlg.cpp

......\ClientDlg.h

......\ClientLogin.cpp

......\ClientLogin.h

......\Debug

......\ListenSocket.cpp

......\ListenSocket.h

......\PeerSocket.cpp

......\PeerSocket.h

......\res

......\resource.h

......\...\chatter1.ico

......\...\Client.rc2

......\...\Duck.ico

......\...\use.ico

......\StdAfx.cpp

......\StdAfx.h

......\UserInfo.cpp

......\UserInfo.h

P2P聊天软件说明及使用.doc

Server

......\ChatPacket.cpp

......\ChatPacket.h

......\ClientSocket.cpp

......\ClientSocket.h

......\Debug

......\ListenSocket.cpp

......\ListenSocket.h

......\res

......\resource.h

......\...\chatter1.ico

......\...\Duck.ico

......\...\iBDE Icon 26.ico

......\...\Poste-de-trail.ico

......\...\Server.ico

......\...\Server.rc2

......\...\Thumbs.db

......\Server.aps

......\Server.clw

......\Server.cpp

......\Server.dsp

......\Server.dsw

......\Server.h

......\Server.ncb

......\Server.opt

......\Server.plg

......\Server.rc

......\ServerAddressDlg.cpp

......\ServerAddressDlg.h

......\ServerDlg.cpp

......\ServerDlg.h

......\StdAfx.cpp

......\StdAfx.h

......\UserInfo.cpp

......\UserInfo.h

......\userlist.ini

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org