コード例 #1
0
        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;
        }
コード例 #2
0
 internal static extern int pcap_loop(IntPtr p, int cnt, dispatcher_handler callback, IntPtr user);