Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }