protected virtual void OnPacketSniffed(PacketEventArgs e) {
     EventHandler<PacketEventArgs> temp = PacketSniffed;
     if (temp != null) {
         temp(this, e);
     }
 }
Beispiel #2
0
        private void OnSnifferClientPacketSniffed(object sender, PacketEventArgs e) {
            packets.Add(e.Packet);

            DoBeginInvoke(() => {
                if (PacketContainsFilterTerm(e.Packet)) {
                    ListViewItem item = BuildPacketListViewItem(e.Packet);
                    packetsListView.Items.Add(item);
                }
            });
        }