Code example for InetAddress

Methods: getHostAddress

0
	 
	@Override 
	public String getAddress() {
		InetAddress addr = mAddr.getAddress();
		 
		return ((addr != null) ? addr.getHostAddress() : null);
	} 
 
	@Override 
	public int getPort() { 
		return mAddr.getPort();
	} 
	public SocketAddress getInetAddress() {
		return mAddr;
	} 
 
	@Override 
	public String toString() {
		return mAddr.toString();
	} 
}