Description: Were prepared by the client and server programs, network chat function.
Method: server first establish a ListenSocket. When a client connection, and a new client calls ClientSocket, and maintained until the client disconnects, and ListenSocket continue to wait for another client to connect.
First, the client is also a Socket, and connect to the server and the server then calls the corresponding ClientSocket maintained until the end.
To Search:
File list (Check if you may need any files):
客户端Client\ChatSocket.cpp
............\ChatSocket.h
............\ex126ClientDlg.h
............\LogonDlg.cpp
............\LogonDlg.h
............\ReadMe.txt
............\res\客户端Client.ico
............\...\客户端Client.rc2
............\resource.h
............\StdAfx.cpp
............\StdAfx.h
............\客户端Client.aps
............\客户端Client.clw
............\客户端Client.cpp
............\客户端Client.dsp
............\客户端Client.dsw
............\客户端Client.h
............\客户端Client.plg
............\客户端Client.rc
............\客户端ClientDlg.cpp
服务端Svr\ClientSocket.cpp
.........\ClientSocket.h
.........\ex126SvrDlg.h
.........\InitDlg.cpp
.........\InitDlg.h
.........\ListeningSocket.cpp
.........\ListeningSocket.h
.........\ReadMe.txt
.........\res\ex126Svr.ico
.........\...\ex126Svr.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\服务端Svr.aps
.........\服务端Svr.clw
.........\服务端Svr.cpp
.........\服务端Svr.dsp
.........\服务端Svr.dsw
.........\服务端Svr.h
.........\服务端Svr.plg
.........\服务端Svr.rc
.........\服务端SvrDlg.cpp
客户端Client\res
服务端Svr\res
客户端Client
服务端Svr