Description: VC++ LAN UDP penetrate NAT (P2P) principle and source code, forums, often the discussion of the principle of P2P, but the discussion to the discussion, very few have a real thing (source code), here on their own to achieve a source code to illustrate the principle of UDP through NAT. Screenshot of services were demonstrated and the client-side state diagram of the operation.
File list (Check if you may need any files):
............\P2P
............\...\Exception.h
............\...\P2PClient
............\...\.........\P2PClient.cpp
............\...\.........\P2PClient.dsp
............\...\.........\P2PClient.dsw
............\...\.........\P2PClient.sln
............\...\.........\P2PClient.vcproj
............\...\P2PServer
............\...\.........\P2PServer.cpp
............\...\.........\P2PServer.dsp
............\...\.........\P2PServer.dsw
............\...\.........\P2PServer.sln
............\...\.........\P2PServer.vcproj
............\...\proto.h
............\...\UDP穿越NAT.TXT