Exemplo n.º 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);
     }
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
 public IPAddress getIP()
 {
     return(selfNodeBasic.getIP());
 }