Esempio n. 1
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            ClientListener listener;

            listener = new ClientListener(new IPEndPoint(GetLocalInternalIP(), UInt16.Parse(textBoxLocalPort.Text)), new IPEndPoint(IPAddress.Parse(textBoxRemoteIp.Text), UInt16.Parse(textBoxPort.Text)), ProxyMode);
            Listener.OnGotResultsCbk onGotRes = new Listener.OnGotResultsCbk(OnGotResults);
            listener.SetOnGotResults(onGotRes);
            listenerList.Add(listener);
            listener.Start();
        }
Esempio n. 2
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            ClientListener listener;

            listener = new ClientListener(new IPEndPoint(GetLocalInternalIP(), UInt16.Parse(textBoxLocalPort.Text)), new IPEndPoint(IPAddress.Parse(textBoxRemoteIp.Text), UInt16.Parse(textBoxPort.Text)), ProxyMode);
            Listener.OnGotResultsCbk onGotRes = new Listener.OnGotResultsCbk(OnGotResults);
            listener.SetOnGotResults(onGotRes);
            listenerList.Add(listener);
            listener.Start();
        }