Description: The design of a p2p chat software, multiple chat client and a central server. Each chat client can 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
To Search:
File list (Check if you may need any files):
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