Java Socket Address Get inetAddrToHoman(final InetSocketAddress sockAddr)

Here you can find the source of inetAddrToHoman(final InetSocketAddress sockAddr)

Description

inet Addr To Homan

License

Apache License

Declaration

public static String inetAddrToHoman(final InetSocketAddress sockAddr) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.InetSocketAddress;

public class Main {
    public static String inetAddrToHoman(final InetSocketAddress sockAddr) {
        return sockAddr.getAddress().getHostAddress() + ":" + sockAddr.getPort();
    }/*from w  ww  .  ja  va2s.  c  o m*/
}

Related

  1. getSocketAddress(InetSocketAddress socket)
  2. getSocketAddress(SocketAddress socketAddress)
  3. getSocketAddress(String hostHeader)
  4. getSocketAddressList(String list, int defaultPort)
  5. getSocketConnectString( InetSocketAddress socketAddress)
  6. inetSocketAddress2IpPort(InetSocketAddress addr)
  7. IpToString(InetSocketAddress address)
  8. isAddressDefined(InetSocketAddress address)
  9. isLegalPeerAddress(@CheckForNull SocketAddress socketAddress)