public CaptureForm(AgentListener listener, AgentListener.SoftwallRule[] rules) { InitializeComponent(); this.listener = listener; msgCount = msgBytes = 0; pktCount = pktBytes = 0; receivedHandler = new AgentListener.ElementsReceivedHandler(listener_MessageElementsReceived); listener.MessageElementsReceived += receivedHandler; listener.Start(rules); }
public CaptureForm(AgentListener listener, AgentListener.SoftwallRule[] rules) { InitializeComponent(); this.listener = listener; msgCount = msgBytes = 0; pktCount = pktBytes = 0; receivedHandler = new AgentListener.ElementsReceivedHandler(listener_MessageElementsReceived); listener.MessageElementsReceived += receivedHandler; listener.Start(rules); }
public MainForm() { InitializeComponent(); config = ConfigManager.GetContext("MainForm"); colorPool = new ColorPool(); listener = new AgentListener(); receivedHandler = new AgentListener.ElementsReceivedHandler(listener_ElementsReceived); listener.MessageElementsReceived += receivedHandler; stoppedHandler = new AgentListener.StoppedHandler(listener_Stopped); listener.Stopped += stoppedHandler; tblMessages = dataSet.Tables["messages"]; debugForm = new DebugForm(); injectForm = new InjectForm(); swForm = new SoftwallForm(); packetParser = new PacketParser(debugForm); packetParser.PacketDescriptionReceived += new PacketParser.PacketDescriptionReceivedHandler(packetParser_PacketDescriptionReceived); dumpDisplayMode = DisplayMode.HEX; findTypeComboBox.SelectedIndex = 0; ClearState(); LoadSettings(); ApplyFilters(); }