Ejemplo n.º 1
0
 public Processor()
 {
     this.BuildTcpSessions         = false;
     this.BuildUdpSessions         = false;
     _tcpSessionsBuilder           = new TcpSessionsBuilder();
     _udpStreamBuilder             = new UdpStreamBuilder();
     _processingPrecentsPredicator = new ProcessingPrecentsPredicator();
     _processingPrecentsPredicator.ProcessingPrecentsChanged += OnPredicatorProcessingPrecentsChanged;
 }
Ejemplo n.º 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();
 }