StopForwarding() public static method

public static StopForwarding ( ) : void
return void
Esempio n. 1
0
 private void checkBoxF1_CheckedChanged(object sender, EventArgs e)
 {
     if (this.checkBoxF1.Checked == true)
     {
         if (RecForwConnection1.StartForward(
                 //Source parameters (always passed in, however the connection manager will use it just in the case the
                 // connection is not active already)
                 IPAddress.Parse(this.listBoxLocalAddr.Items[0].ToString()),
                 IPAddress.Parse(this.listBoxIPAddress.Items[0].ToString()),
                 int.Parse(this.listBoxPort.Items[0].ToString()),
                 // Forward parameters
                 IPAddress.Parse(this.listBoxForwardingInterface.Items[0].ToString()),
                 IPAddress.Parse(this.listBoxForwardingMulticast.Items[0].ToString()),
                 int.Parse(this.listBoxForwardingPort.Items[0].ToString())) == false)
         {
             this.checkBoxF1.Checked = false;
         }
         else
         {
             this.progressBarF1.Visible = true;
         }
     }
     else
     {
         RecForwConnection1.StopForwarding();
         this.progressBarF1.Visible = false;
     }
 }