Exemple #1
0
 public static bool Equals(NodeBasic n1, NodeBasic n2)
 {
     if ((n1.getIP().ToString() == n2.getIP().ToString()))             //hashedIPs should be equal if IPs are equal; so need to check
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 public ProxyNode(IPAddress ip)
 {
     selfNodeBasic = new NodeBasic(ip);
 }
Exemple #3
0
 public static bool Equals(NodeBasic n1, NodeBasic n2)
 {
     if ((n1.getIP().ToString() == n2.getIP().ToString())) //hashedIPs should be equal if IPs are equal; so need to check
         return true;
     else
         return false;
 }
Exemple #4
0
 public ProxyNode(IPAddress ip)
 {
     selfNodeBasic = new NodeBasic(ip);
 }