文件名称:MyProjects
介绍说明--下载内容均来自于网络,请自行研究使用
环境:Windows XP SP3、 VC++ 6.0、 Windows 2003 SDK
使用步骤:
1、下载解压之后,使用VC++ 6.0打开两个工程:一个是SocketServer和一个ClientSocket工程。
2、首先运行服务器端工程,选默认的端口1008
3、然后运行客户端工程,选默认的端口1008和默认的服务器地址
4、再运行多个客户端进程
5、如果一切正常,可以每个客户端的消息发送,我们可以在服务端和各个客户端同步看到消息
-Environment: Windows XP SP3, VC++ 6.0, Windows 2003 SDK to use steps: 1, download After the decompression, using VC++ 6.0 to open two projects: one is SocketServer and a ClientSocket project. 2, first run the server-side project, select the default port 10083, and then run the client project, select the default port 1008 and the default server address 4, and then run multiple client processes 5, if everything goes normal, you can each customer end of the message, we can in the service side and client-side synchronization see the message in all
使用步骤:
1、下载解压之后,使用VC++ 6.0打开两个工程:一个是SocketServer和一个ClientSocket工程。
2、首先运行服务器端工程,选默认的端口1008
3、然后运行客户端工程,选默认的端口1008和默认的服务器地址
4、再运行多个客户端进程
5、如果一切正常,可以每个客户端的消息发送,我们可以在服务端和各个客户端同步看到消息
-Environment: Windows XP SP3, VC++ 6.0, Windows 2003 SDK to use steps: 1, download After the decompression, using VC++ 6.0 to open two projects: one is SocketServer and a ClientSocket project. 2, first run the server-side project, select the default port 10083, and then run the client project, select the default port 1008 and the default server address 4, and then run multiple client processes 5, if everything goes normal, you can each customer end of the message, we can in the service side and client-side synchronization see the message in all
(系统自动生成,下载前可以参看下载内容)
下载文件列表
SocketServer\MyPort.cpp
............\MyPort.h
............\ReadMe.txt
............\..lease\Message.obj
............\.......\MyPort.obj
............\.......\socketclient.obj
............\.......\socketlistener.obj
............\.......\SocketServer.exe
............\.......\SocketServer.obj
............\.......\SocketServer.pch
............\.......\SocketServer.res
............\.......\SocketServerDlg.obj
............\.......\StdAfx.obj
............\.......\vc60.idb
............\Release
............\res\SocketServer.ico
............\...\SocketServer.rc2
............\res
............\resource.h
............\SocketServer.aps
............\SocketServer.clw
............\SocketServer.cpp
............\SocketServer.dsp
............\SocketServer.dsw
............\SocketServer.h
............\SocketServer.ncb
............\SocketServer.opt
............\SocketServer.plg
............\SocketServer.rc
............\SocketServerDlg.cpp
............\SocketServerDlg.h
............\StdAfx.cpp
............\StdAfx.h
............\util\Message.cpp
............\....\Message.h
............\....\socketclient.cpp
............\....\socketclient.h
............\....\socketlistener.cpp
............\....\socketlistener.h
............\util
SocketServer
ClientSocket\ClientSocket.aps
............\ClientSocket.clw
............\ClientSocket.cpp
............\ClientSocket.dsp
............\ClientSocket.dsw
............\ClientSocket.h
............\ClientSocket.ncb
............\ClientSocket.opt
............\ClientSocket.plg
............\ClientSocket.rc
............\ClientSocketDlg.cpp
............\ClientSocketDlg.h
............\Debug\ChatSocket.obj
............\.....\ClientSocket.exe
............\.....\ClientSocket.ilk
............\.....\ClientSocket.obj
............\.....\ClientSocket.pch
............\.....\ClientSocket.pdb
............\.....\ClientSocket.res
............\.....\ClientSocketDlg.obj
............\.....\Message.obj
............\.....\SetupDlg.obj
............\.....\StdAfx.obj
............\.....\vc60.idb
............\.....\vc60.pdb
............\Debug
............\ReadMe.txt
............\res\ClientSocket.ico
............\...\ClientSocket.rc2
............\res
............\resource.h
............\SetupDlg.cpp
............\SetupDlg.h
............\StdAfx.cpp
............\StdAfx.h
............\util\ChatSocket.cpp
............\....\chatsocket.h
............\....\Message.cpp
............\....\Message.h
............\util
ClientSocket
............\MyPort.h
............\ReadMe.txt
............\..lease\Message.obj
............\.......\MyPort.obj
............\.......\socketclient.obj
............\.......\socketlistener.obj
............\.......\SocketServer.exe
............\.......\SocketServer.obj
............\.......\SocketServer.pch
............\.......\SocketServer.res
............\.......\SocketServerDlg.obj
............\.......\StdAfx.obj
............\.......\vc60.idb
............\Release
............\res\SocketServer.ico
............\...\SocketServer.rc2
............\res
............\resource.h
............\SocketServer.aps
............\SocketServer.clw
............\SocketServer.cpp
............\SocketServer.dsp
............\SocketServer.dsw
............\SocketServer.h
............\SocketServer.ncb
............\SocketServer.opt
............\SocketServer.plg
............\SocketServer.rc
............\SocketServerDlg.cpp
............\SocketServerDlg.h
............\StdAfx.cpp
............\StdAfx.h
............\util\Message.cpp
............\....\Message.h
............\....\socketclient.cpp
............\....\socketclient.h
............\....\socketlistener.cpp
............\....\socketlistener.h
............\util
SocketServer
ClientSocket\ClientSocket.aps
............\ClientSocket.clw
............\ClientSocket.cpp
............\ClientSocket.dsp
............\ClientSocket.dsw
............\ClientSocket.h
............\ClientSocket.ncb
............\ClientSocket.opt
............\ClientSocket.plg
............\ClientSocket.rc
............\ClientSocketDlg.cpp
............\ClientSocketDlg.h
............\Debug\ChatSocket.obj
............\.....\ClientSocket.exe
............\.....\ClientSocket.ilk
............\.....\ClientSocket.obj
............\.....\ClientSocket.pch
............\.....\ClientSocket.pdb
............\.....\ClientSocket.res
............\.....\ClientSocketDlg.obj
............\.....\Message.obj
............\.....\SetupDlg.obj
............\.....\StdAfx.obj
............\.....\vc60.idb
............\.....\vc60.pdb
............\Debug
............\ReadMe.txt
............\res\ClientSocket.ico
............\...\ClientSocket.rc2
............\res
............\resource.h
............\SetupDlg.cpp
............\SetupDlg.h
............\StdAfx.cpp
............\StdAfx.h
............\util\ChatSocket.cpp
............\....\chatsocket.h
............\....\Message.cpp
............\....\Message.h
............\util
ClientSocket