P2P-IM

所属分类:网络编程
开发工具:Visual C++
文件大小:491KB
下载次数:102
上传日期:2012-04-07 15:07:23
上 传 者chinamoki
说明:  设计一个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 (0, 2011-10-30)
Client\ChatDlg.cpp (9965, 2011-10-30)
Client\ChatDlg.h (2843, 2011-10-30)
Client\chatlog.txt (968, 2011-10-26)
Client\ChatPacket.cpp (1557, 2011-10-30)
Client\ChatPacket.h (1258, 2011-10-30)
Client\ChatSocket.cpp (1172, 2011-10-30)
Client\ChatSocket.h (1389, 2011-10-30)
Client\Client.aps (41076, 2011-10-31)
Client\Client.clw (2602, 2011-10-31)
Client\Client.cpp (2158, 2007-12-08)
Client\Client.dsp (5146, 2011-10-30)
Client\Client.dsw (520, 2011-10-24)
Client\Client.h (1324, 2007-11-25)
Client\Client.ncb (205824, 2011-10-31)
Client\Client.opt (52736, 2011-10-31)
Client\Client.plg (2766, 2011-10-31)
Client\Client.rc (7162, 2011-10-31)
Client\ClientDlg.cpp (16471, 2011-10-30)
Client\ClientDlg.h (2840, 2011-10-30)
Client\ClientLogin.cpp (1574, 2011-10-30)
Client\ClientLogin.h (1389, 2011-10-30)
Client\Debug (0, 2011-10-30)
Client\ListenSocket.cpp (961, 2011-10-30)
Client\ListenSocket.h (1293, 2011-10-30)
Client\PeerSocket.cpp (842, 2011-10-30)
Client\PeerSocket.h (1257, 2007-11-30)
Client\res (0, 2011-10-30)
Client\resource.h (1369, 2011-10-30)
Client\res\chatter1.ico (1078, 2011-10-31)
Client\res\Client.rc2 (398, 2007-11-25)
Client\res\Duck.ico (1078, 2011-10-31)
Client\res\use.ico (2238, 2011-10-30)
Client\StdAfx.cpp (208, 2007-11-25)
Client\StdAfx.h (1252, 2008-03-07)
Client\UserInfo.cpp (2200, 2011-10-29)
Client\UserInfo.h (1101, 2011-10-30)
P2P聊天软件说明及使用.doc (196608, 2012-04-07)
Server (0, 2011-10-30)
Server\ChatPacket.cpp (1570, 2011-10-30)
... ...

近期下载者

相关文件


收藏者