Rename localIp/remoteIp fields to localAddress/remoteAddress to prepare for DNS names

This commit is contained in:
Cameron Gutman 2017-09-09 12:45:41 -07:00
parent fe71b1be20
commit e7f92d3667
3 changed files with 10 additions and 10 deletions

View File

@ -16,8 +16,8 @@ public class ComputerDetails {
public Reachability reachability;
public String name;
public UUID uuid;
public InetAddress localIp;
public InetAddress remoteIp;
public InetAddress localAddress;
public InetAddress remoteAddress;
public PairingManager.PairState pairState;
public String macAddress;
public int runningGameId;
@ -39,8 +39,8 @@ public class ComputerDetails {
this.reachability = details.reachability;
this.name = details.name;
this.uuid = details.uuid;
this.localIp = details.localIp;
this.remoteIp = details.remoteIp;
this.localAddress = details.localAddress;
this.remoteAddress = details.remoteAddress;
this.macAddress = details.macAddress;
this.pairState = details.pairState;
this.runningGameId = details.runningGameId;
@ -54,8 +54,8 @@ public class ComputerDetails {
str.append("Reachability: ").append(reachability).append("\n");
str.append("Name: ").append(name).append("\n");
str.append("UUID: ").append(uuid).append("\n");
str.append("Local IP: ").append(localIp).append("\n");
str.append("Remote IP: ").append(remoteIp).append("\n");
str.append("Local IP: ").append(localAddress).append("\n");
str.append("Remote IP: ").append(remoteAddress).append("\n");
str.append("MAC Address: ").append(macAddress).append("\n");
str.append("Pair State: ").append(pairState).append("\n");
str.append("Running Game ID: ").append(runningGameId).append("\n");

View File

@ -223,8 +223,8 @@ public class NvHTTP {
externalIpStr = address.getHostAddress();
}
details.localIp = InetAddress.getByName(localIpStr);
details.remoteIp = InetAddress.getByName(externalIpStr);
details.localAddress = InetAddress.getByName(localIpStr);
details.remoteAddress = InetAddress.getByName(externalIpStr);
try {
details.pairState = Integer.parseInt(getXmlString(serverInfo, "PairStatus")) == 1 ?

View File

@ -23,10 +23,10 @@ public class WakeOnLanSender {
for (int i = 0; i < 2; i++) {
InetAddress addr;
if (i == 0) {
addr = computer.localIp;
addr = computer.localAddress;
}
else {
addr = computer.remoteIp;
addr = computer.remoteAddress;
}
// Try all the ports for each address