You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/01/29 07:16:56 UTC

[GitHub] [rocketmq] rushsky518 opened a new issue #1750: Display of SocketAddress

rushsky518 opened a new issue #1750: Display of SocketAddress
URL: https://github.com/apache/rocketmq/issues/1750
 
 
   org.apache.rocketmq.remoting.common.RemotingHelper#parseSocketAddressAddr
   ````java
       public static String parseSocketAddressAddr(SocketAddress socketAddress) {
           if (socketAddress != null) {
               final String addr = socketAddress.toString();
   
               if (addr.length() > 0) {
                   return addr.substring(1);
               }
           }
           return "";
       }
   ````
   If hostname is not null, the variable addr is of the form: hostname / literal IP address
   
   ![image](https://user-images.githubusercontent.com/20531420/73335406-3f2cde00-42aa-11ea-9a4e-adc67a7e5f54.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services