MCPcopy Index your code
hub / github.com/cSploit/android / getDisplayAddress

Method getDisplayAddress

cSploit/src/org/csploit/android/net/Target.java:494–506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

492 }
493
494 public String getDisplayAddress(){
495 if(mType == Type.NETWORK)
496 return mNetwork.getNetworkRepresentation();
497
498 else if(mType == Type.ENDPOINT)
499 return mEndpoint.getAddress().getHostAddress() + (mPort == 0 ? "" : ":" + mPort);
500
501 else if(mType == Type.REMOTE)
502 return mHostname + (mPort == 0 ? "" : ":" + mPort);
503
504 else
505 return "???";
506 }
507
508 public String toString(){
509 if(hasAlias())

Callers 3

getViewMethod · 0.95
toStringMethod · 0.95
getViewMethod · 0.95

Calls 2

getAddressMethod · 0.45

Tested by

no test coverage detected