Example #1
0
        private static void Main(string[] args)
        {
            Globals.args            = args;
            Globals.deviceInterface = 0;

            packetsvc = new L2RPacketService(Globals.deviceInterface);
            packetsvc.L2RPacketArrivalEvent += OnL2RPacketArrival;
            packetsvc.StartCapture();

            int counter = 0;

            while (true)
            {
                counter++;
            }
        }
Example #2
0
        private static void Main(string[] args)
        {
            Globals.Args            = args;
            Globals.DeviceInterface = 0;

            PacketService = new L2RPacketService(Globals.DeviceInterface);

            PacketService.ProcessQueueTick   += OnL2RProcessQueueTick;
            PacketService.PacketArrivalEvent += OnL2RPacketArrival;
            PacketService.PacketError        += OnL2RPacketError;

            PacketService.StartCapture();

            int counter = 0;

            while (true)
            {
                counter++;
            }
        }