public override int GetHashCode() { unchecked { var hashCode = PublicPort; hashCode = (hashCode * 397) ^ (PrivateIP != null ? PrivateIP.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PrivatePort; return(hashCode); } }
internal string GetMacAndPrivateIPs() { var list = MacAddresses.List(); for (int i = 0; i < list.Count; i++) { list[i] += " : " + PrivateIP.ForMAC(list[i]); } return(string.Join(L.f, list)); }
public void PrivateIPWithValidAddress_ReturnsAddressAsInt() { Assert.AreEqual(3232235777, PrivateIP.ToUInt32()); }
public void PrivateIPWithValidAddress_ReturnsTrue() { Assert.IsTrue(PrivateIP.IsPrivateAddress()); }
internal string GetPrivateIP(string macAddress) => PrivateIP.ForMAC(macAddress);
private static void ConnectCenter() { Center = new CenterServer(PrivateIP.ToString(), 8383); // NOTE: Is a constant value needed for this? Center.Connect(); }