Introduction - If you have any usage issues, please Google them yourself
"A network communication class CHwSocket that imitates the CAsyncSocket class in MFC.
MFC provides two used in network programming classes respectively CAsyncSocket for asynchronous and synchronous CSocket class, these two classes is used to write network communication program is very convenient, but also has some problems, for example: can't across threads access, published applications using MFC static connection also has a problem, use the default window to accept the news, in the absence of Windows applications also have a question, I haven't solve these problems, if there is a superior know solution please inform me, my E-mail address is: chrys@163.com.
For programming convenience, I will be here the Socket APIs encapsulated into a similar CAsyncSocket interface class that can visit in any thread, also can be connected to the MFC static, and controllable is far better than two sockets in MFC class. I also wrote detailed test code for the CHwSocket class, which can be used for TCP server/client data communication, UDP data communication, and UDP broadcast datagram.
You can copy this code in any way you want, but please keep this text without modification.
I hope I can do a good job for China's software industry!
Pieces pieces pieces pieces pieces author in pieces
Xie hongwei chrys chrys@163.com · http://www.howa.com.cn
Pieces pieces pieces pieces pieces date in pieces
The 2007-09-23 00:29:12
Packet : 35738635dllhwsocket.rar filelist
dllHwSocket.sln
dllHwSocket.suo
dll
dll\dllHwSocket.cpp
dll\dllHwSocket.def
dll\dllHwSocket.h
dll\dllHwSocket.rc
dll\dllHwSocket.vcproj
dll\dllHwSocket.vcproj.CHRYS-T60.chrys.user
dll\HwSocket.cpp
dll\HwSocket.h
dll\ReadMe.txt
dll\res
dll\res\dllHwSocket.rc2
dll\Resource.h
dll\stdafx.cpp
dll\stdafx.h
TBroadcast_dllHwSocket
TBroadcast_dllHwSocket\ReadMe.txt
TBroadcast_dllHwSocket\Resource.h
TBroadcast_dllHwSocket\stdafx.cpp
TBroadcast_dllHwSocket\stdafx.h
TBroadcast_dllHwSocket\TBroadcast_dllHwSocket.cpp
TBroadcast_dllHwSocket\TBroadcast_dllHwSocket.h
TBroadcast_dllHwSocket\TBroadcast_dllHwSocket.rc
TBroadcast_dllHwSocket\TBroadcast_dllHwSocket.vcproj
TBroadcast_dllHwSocket\TBroadcast_dllHwSocket.vcproj.CHRYS-T60.chrys.user
TTCP_dllHwSocket
TTCP_dllHwSocket\ReadMe.txt
TTCP_dllHwSocket\Resource.h
TTCP_dllHwSocket\stdafx.cpp
TTCP_dllHwSocket\stdafx.h
TTCP_dllHwSocket\TTCP_dllHwSocket.cpp
TTCP_dllHwSocket\TTCP_dllHwSocket.h
TTCP_dllHwSocket\TTCP_dllHwSocket.rc
TTCP_dllHwSocket\TTCP_dllHwSocket.vcproj
TTCP_dllHwSocket\TTCP_dllHwSocket.vcproj.CHRYS-T60.chrys.user
TUDP_dllHwSocket
TUDP_dllHwSocket\ReadMe.txt
TUDP_dllHwSocket\Resource.h
TUDP_dllHwSocket\stdafx.cpp
TUDP_dllHwSocket\stdafx.h
TUDP_dllHwSocket\TUDP_dllHwSocket.cpp
TUDP_dllHwSocket\TUDP_dllHwSocket.h
TUDP_dllHwSocket\TUDP_dllHwSocket.rc
TUDP_dllHwSocket\TUDP_dllHwSocket.vcproj
TUDP_dllHwSocket\TUDP_dllHwSocket.vcproj.CHRYS-T60.chrys.user