private String socketAddressToString ( SocketAddress address ) { String addr = address . toString ( ) ; int i = addr . indexOf ( "/" ) ; if ( i >= 0 ) { addr = addr . substring ( i + 1 ) ; } return addr ; }
Converts a socket address to a reasonable display string .