InetAddress addr = getInetAddress();
if (! isBound()) return null;
  public SocketAddress getLocalSocketAddress()  {    InetAddress addr = getInetAddress();    if (addr != null)      return new InetSocketAddress (getInetAddress(), getLocalPort());    return null;  }