Pcap.net vs Sharppcap

前端 未结 2 713
广开言路
广开言路 2021-01-11 12:06

I just want to listen a network device, capture packets and write the packets to a dummy file. Also i need to filter packets while listening so ill only write packets which

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 12:35

    The entire functionality is available in Pcap.Net.

    Pcap.Net uses C++/CLI to wrap WinPcap, which is considered more efficient than PInvoke.

    The packet library in Pcap.Net is quite big and complex packets can be parsed and created. This includes recursive layers like IP over IP. Parsing of each layer is done lazily and only when you need it.

    For your needs, I see only benefits of using Pcap.Net over SharpPcap.

提交回复
热议问题