Exemplo n.º 1
0
 public xbs_node(IPAddress ip_announced, int port_announced, IPAddress ip_sendfrom, int port_sendfrom)
     : this(ip_sendfrom, port_sendfrom)
 {
     this.ip_announced   = ip_announced;
     this.port_announced = port_announced;
     if (!NatUtility.IsPrivateAddressSpace(ip_announced) && ip_announced.ToString() != "0.0.0.0")
     {
         this.ip_public   = ip_announced;
         this.port_public = port_announced;
     }
 }