Beispiel #1
0
 public Processor()
 {
     this.BuildTcpSessions         = false;
     _tcpSessionsBuilder           = new TcpSessionsBuilder();
     _processingPrecentsPredicator = new ProcessingPrecentsPredicator();
     _processingPrecentsPredicator.ProcessingPrecentsChanged += OnPredicatorProcessingPrecentsChanged;
 }
Beispiel #2
0
 public Sniffer()
 {
     this.Filter                       = string.Empty;
     this.BuildTcpSessions             = true;
     this.BuildUdpSessions             = true;
     this.PromisciousMode              = false;
     _tcpSessionsBuilder               = new TcpSessionsBuilder();
     _tcpSessionsBuilder.IsLiveCapture = true;
     _udpStreamBuilder                 = new UdpStreamBuilder();
     _packets          = new Queue <PacketDotNet.Packet>();
     _packetsQueueLock = new object();
     _cts = new CancellationTokenSource();
 }