Code example for InetSocketAddress

Methods: getAddress

0
        return (TcpConnector) endpoint.getConnector();
    } 
 
    public InetAddress getInetAddress()
    { 
        return address.getAddress();
    } 
 
    public int getPort() 
    { 
        return address.getPort();
    } 
 
    @Override 
    public String toString()
    { 
        return getInetAddress() + ":" + getPort(); 
    } 
 
}