Arsen Zahray Arsen Zahray - 1 year ago 178
C# Question

How to stop receiving packets from

I'm looking at'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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download