NetPcap Class

Primary entry point.

Factory Methods

  • create() – two-stage configuration

  • openLive() – one-shot live capture

  • openOffline() – file reading

  • openDead() – filter compilation

Example with ProtocolStack:

NetPcap pcap = NetPcap.openOffline("file.pcap", stack);

Last updated