if (isClosed()) throw new SocketException("socket is closed");
  public void setTcpNoDelay (boolean on)  throws SocketException  {    getImpl().setOption(SocketOptions.TCP_NODELAY, new Boolean(on));  }