Java Socket Address Get getCanonicalConnectionAddress(InetSocketAddress address)

Here you can find the source of getCanonicalConnectionAddress(InetSocketAddress address)

Description

get Canonical Connection Address

License

Open Source License

Declaration

public static String getCanonicalConnectionAddress(InetSocketAddress address) 

Method Source Code


//package com.java2s;
import java.net.InetSocketAddress;

public class Main {
    public static String getCanonicalConnectionAddress(InetSocketAddress address) {
        return "tcp://" + address.getAddress().getCanonicalHostName() + ":" + address.getPort();
    }/*from www .j  a v  a2  s .  c o  m*/
}

Related

  1. getAddressFirst(InetSocketAddress inetSocketAddress)
  2. getAddressRepresentation(final SocketAddress address)
  3. getAddrString(final SocketAddress address)
  4. getAlreadyBoundServerSocket(String address, int port, boolean ssl, boolean useChannels)
  5. getBestAddress(InetSocketAddress addr)
  6. getClientPort(SocketAddress socketAddress)
  7. getConnectAddress(InetSocketAddress addr)
  8. getConnString(SocketAddress address)
  9. getDestination(InetSocketAddress server)