How to read IP header and its TCP header from RAW socket packet

The C# sample code developed in .NET Framework 4.0 would demonstrate a network sniffer sample that can parse IP, TCP, UDP, and DNS packets.

C# (265.4 KB)
1,627 times
Add to favorites
E-mail Twitter Digg Facebook
Click an item in the panel on the left to view the contents here.