public ReceivePcapOverTcpForm(PacketParser.PacketHandler packetHandler, NetworkMiner.NetworkMinerForm.AddCaseFileCallback addCaseFileCallback, NetresecShared.Pcap.PcapFileReader.CaseFileLoadedCallback caseFileLoadedCallback, RunWorkerCompletedEventHandler completedEventHandler, ushort portNumber)
 {
     this.packetHandler          = packetHandler;
     this.addCaseFileCallback    = addCaseFileCallback;
     this.caseFileLoadedCallback = caseFileLoadedCallback;
     this.completedEventHandler  = completedEventHandler;
     InitializeComponent();
     this.portNumberSelectorIncoming.Value = portNumber;
     this.startReceivingButton.Select();
 }
Exemplo n.º 2
0
        public void GetPcapOverIp(PacketParser.PacketHandler packetHandler, NetworkMiner.NetworkMinerForm.AddCaseFileCallback addCaseFileCallback, NetresecShared.Pcap.PcapFileReader.CaseFileLoadedCallback caseFileLoadedCallback, System.ComponentModel.RunWorkerCompletedEventHandler completedEventHandler, System.Windows.Forms.IWin32Window owner)
        {
            ReceivePcapOverTcpForm receiveForm = new ReceivePcapOverTcpForm(packetHandler, addCaseFileCallback, caseFileLoadedCallback, completedEventHandler, this.nextPortNumber++);

            receiveForm.Show(owner);
        }