StartForward() public static method

public static StartForward ( IPAddress Interface_Addres, IPAddress Multicast_Address, int PortNumber, IPAddress Frwd_Interface_Addres, IPAddress Frwd_Multicast_Address, int Frwd_PortNumber ) : bool
Interface_Addres System.Net.IPAddress
Multicast_Address System.Net.IPAddress
PortNumber int
Frwd_Interface_Addres System.Net.IPAddress
Frwd_Multicast_Address System.Net.IPAddress
Frwd_PortNumber int
return bool
示例#1
0
 private void checkBoxF4_CheckedChanged(object sender, EventArgs e)
 {
     if (this.checkBoxF4.Checked == true)
     {
         if (RecForwConnection4.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[3].ToString()),
                 IPAddress.Parse(this.listBoxIPAddress.Items[3].ToString()),
                 int.Parse(this.listBoxPort.Items[3].ToString()),
                 // Forward parameters
                 IPAddress.Parse(this.listBoxForwardingInterface.Items[3].ToString()),
                 IPAddress.Parse(this.listBoxForwardingMulticast.Items[3].ToString()),
                 int.Parse(this.listBoxForwardingPort.Items[3].ToString())) == false)
         {
             this.checkBoxF4.Checked = false;
         }
         else
         {
             this.progressBarF4.Visible = true;
         }
     }
     else
     {
         RecForwConnection4.StopForwarding();
         this.progressBarF4.Visible = false;
     }
 }