if (impl == null) throw new SocketException ("Cannot initialize Socket implementation");
  public int getSendBufferSize() throws SocketException  {    Object obj = impl.getOption(SocketOptions.SO_SNDBUF);    if (obj instanceof Integer)      return(((Integer)obj).intValue());    else      throw new SocketException("Unexpected type");  }