StopForwarding() public static method

public static StopForwarding ( ) : void
return void
Exemplo n.º 1
0
 private void checkBoxF2_CheckedChanged(object sender, EventArgs e)
 {
     if (this.checkBoxF2.Checked == true)
     {
         if (RecForwConnection2.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[1].ToString()),
                 IPAddress.Parse(this.listBoxIPAddress.Items[1].ToString()),
                 int.Parse(this.listBoxPort.Items[1].ToString()),
                 // Forward parameters
                 IPAddress.Parse(this.listBoxForwardingInterface.Items[1].ToString()),
                 IPAddress.Parse(this.listBoxForwardingMulticast.Items[1].ToString()),
                 int.Parse(this.listBoxForwardingPort.Items[1].ToString())) == false)
         {
             this.checkBoxF2.Checked = false;
         }
         else
         {
             this.progressBarF2.Visible = true;
         }
     }
     else
     {
         RecForwConnection2.StopForwarding();
         this.progressBarF2.Visible = false;
     }
 }