Commit 71cb369a authored by Haejoong Lee's avatar Haejoong Lee

clarified the semantics of getHost/getPort methods and added getActiveHost/getActivePort methods

parent e294760c
......@@ -169,11 +169,19 @@ public class Server extends NanoHTTPD {
}
public String getHost() {
return current_host_;
return host_;
}
public int getPort() {
return current_port_;
return port_;
}
public String getActiveHost() {
return isAlive() ? current_host_ : null;
}
public int getActivePort() {
return isAlive() ? current_port_ : null;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment