文件名称:P2P-IM
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:491.48kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
设计一个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
此设计由两部分组成。
部分一: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/
Client/ChatDlg.cpp
Client/ChatDlg.h
Client/chatlog.txt
Client/ChatPacket.cpp
Client/ChatPacket.h
Client/ChatSocket.cpp
Client/ChatSocket.h
Client/Client.aps
Client/Client.clw
Client/Client.cpp
Client/Client.dsp
Client/Client.dsw
Client/Client.h
Client/Client.ncb
Client/Client.opt
Client/Client.plg
Client/Client.rc
Client/ClientDlg.cpp
Client/ClientDlg.h
Client/ClientLogin.cpp
Client/ClientLogin.h
Client/Debug/
Client/ListenSocket.cpp
Client/ListenSocket.h
Client/PeerSocket.cpp
Client/PeerSocket.h
Client/res/
Client/resource.h
Client/res/chatter1.ico
Client/res/Client.rc2
Client/res/Duck.ico
Client/res/use.ico
Client/StdAfx.cpp
Client/StdAfx.h
Client/UserInfo.cpp
Client/UserInfo.h
P2P聊天软件说明及使用.doc
Server/
Server/ChatPacket.cpp
Server/ChatPacket.h
Server/ClientSocket.cpp
Server/ClientSocket.h
Server/Debug/
Server/ListenSocket.cpp
Server/ListenSocket.h
Server/res/
Server/resource.h
Server/res/chatter1.ico
Server/res/Duck.ico
Server/res/iBDE Icon 26.ico
Server/res/Poste-de-trail.ico
Server/res/Server.ico
Server/res/Server.rc2
Server/res/Thumbs.db
Server/Server.aps
Server/Server.clw
Server/Server.cpp
Server/Server.dsp
Server/Server.dsw
Server/Server.h
Server/Server.ncb
Server/Server.opt
Server/Server.plg
Server/Server.rc
Server/ServerAddressDlg.cpp
Server/ServerAddressDlg.h
Server/ServerDlg.cpp
Server/ServerDlg.h
Server/StdAfx.cpp
Server/StdAfx.h
Server/UserInfo.cpp
Server/UserInfo.h
Server/userlist.ini
Client/ChatDlg.cpp
Client/ChatDlg.h
Client/chatlog.txt
Client/ChatPacket.cpp
Client/ChatPacket.h
Client/ChatSocket.cpp
Client/ChatSocket.h
Client/Client.aps
Client/Client.clw
Client/Client.cpp
Client/Client.dsp
Client/Client.dsw
Client/Client.h
Client/Client.ncb
Client/Client.opt
Client/Client.plg
Client/Client.rc
Client/ClientDlg.cpp
Client/ClientDlg.h
Client/ClientLogin.cpp
Client/ClientLogin.h
Client/Debug/
Client/ListenSocket.cpp
Client/ListenSocket.h
Client/PeerSocket.cpp
Client/PeerSocket.h
Client/res/
Client/resource.h
Client/res/chatter1.ico
Client/res/Client.rc2
Client/res/Duck.ico
Client/res/use.ico
Client/StdAfx.cpp
Client/StdAfx.h
Client/UserInfo.cpp
Client/UserInfo.h
P2P聊天软件说明及使用.doc
Server/
Server/ChatPacket.cpp
Server/ChatPacket.h
Server/ClientSocket.cpp
Server/ClientSocket.h
Server/Debug/
Server/ListenSocket.cpp
Server/ListenSocket.h
Server/res/
Server/resource.h
Server/res/chatter1.ico
Server/res/Duck.ico
Server/res/iBDE Icon 26.ico
Server/res/Poste-de-trail.ico
Server/res/Server.ico
Server/res/Server.rc2
Server/res/Thumbs.db
Server/Server.aps
Server/Server.clw
Server/Server.cpp
Server/Server.dsp
Server/Server.dsw
Server/Server.h
Server/Server.ncb
Server/Server.opt
Server/Server.plg
Server/Server.rc
Server/ServerAddressDlg.cpp
Server/ServerAddressDlg.h
Server/ServerDlg.cpp
Server/ServerDlg.h
Server/StdAfx.cpp
Server/StdAfx.h
Server/UserInfo.cpp
Server/UserInfo.h
Server/userlist.ini
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.