private void Loop() { IntPtr i; callback = new dispatcher_handler(this.LoopCallback); i = IntPtr.Zero; new HandleRef(callback, i); pcap_loop(pcap_t, 0, callback, IntPtr.Zero); return; }
internal static extern int pcap_loop(IntPtr p, int cnt, dispatcher_handler callback, IntPtr user);