Arsen Zahray
Arsen Zahray

Reputation: 25287

How to stop receiving packets from pcap.net?

I'm looking at pcap.net's ability to intercept packets from various devices.

Starting the process is really straightforward:

communicator.ReceivePackets(0, PacketHandler);

But after that, the process does not stop. Ever.

How do I forcibly close the packet capture?

Upvotes: 3

Views: 1963

Answers (1)

brickner
brickner

Reputation: 6585

Indeed, as you've mentioned in the comments, Break() is intended for that.

Upvotes: 2

Related Questions