コード例 #1
0
        public void TestGetNextPacket()
        {
            using var device = new WinDivertDevice
                  {
                      Filter = "!loopback and tcp"
                  };
            device.Open();
            var capture = device.GetNextPacket();

            AssertTcp(capture);
        }
コード例 #2
0
        public void TestGetNextPacket()
        {
            using var device = new WinDivertDevice
                  {
                      Filter = "!loopback and tcp"
                  };
            PacketCapture e;

            device.Open();
            device.GetNextPacket(out e);
            AssertTcp(e.GetPacket());
        }