详细说明:TCP实现P2P通信,包括TCP NAT 打洞 详细信息请看源代码,是个不错的通信程序
相关函数/类:
InitializeCriticalSection WaitForSingleObject CloseHandle DeleteCriticalSection CreateThread Sleep EnterCriticalSection LeaveCriticalSection GetLocalTime GetTickCount
InitializeCriticalSection WaitForSingleObject CloseHandle DeleteCriticalSection CreateThread Sleep EnterCriticalSection LeaveCriticalSection GetLocalTime GetTickCount
文件列表(点击判断是否您需要的文件):
第10章
......\comm.cpp
......\comm.h
......\common
......\......\comm.cpp
......\......\comm.h
......\......\Debug.h
......\......\initsock.h
......\......\protoinfo.h
......\P2PClientDemo
......\.............\P2PClient.cpp
......\.............\P2PClient.h
......\.............\P2PClientDemo.cpp
......\.............\P2PClientDemo.dsp
......\.............\P2PClientDemo.dsw
......\.............\P2PClientDemo.ncb
......\.............\P2PClientDemo.opt
......\.............\P2PClientDemo.plg
......\P2PServer
......\.........\P2PServer.cpp
......\.........\P2PServer.dsp
......\.........\P2PServer.dsw
......\.........\P2PServer.ncb
......\.........\P2PServer.opt
......\.........\P2PServer.plg
第10章
......\comm.cpp
......\comm.h
......\common
......\......\comm.cpp
......\......\comm.h
......\......\Debug.h
......\......\initsock.h
......\......\protoinfo.h
......\P2PClientDemo
......\.............\P2PClient.cpp
......\.............\P2PClient.h
......\.............\P2PClientDemo.cpp
......\.............\P2PClientDemo.dsp
......\.............\P2PClientDemo.dsw
......\.............\P2PClientDemo.ncb
......\.............\P2PClientDemo.opt
......\.............\P2PClientDemo.plg
......\P2PServer
......\.........\P2PServer.cpp
......\.........\P2PServer.dsp
......\.........\P2PServer.dsw
......\.........\P2PServer.ncb
......\.........\P2PServer.opt
......\.........\P2PServer.plg