谢谢 wisemanboy 了
我下了WinPcap,应该是这方面的,还没仔细看。
--------------------------------------------------------------------------------
The purpose of WinPcap is to give this kind of access to Win32 applications; it provides facilities to:
1.capture raw packets, both the ones destined to the machine where it's running and the ones exchanged by other hosts (on shared media)
2.filter the packets according to user-specified rules before dispatching them to the application
3.transmit raw packets to the network
4.gather statistical values on the network traffic