docs: public boolean sendTCPBytes(byte[] bytes, int retries) {
          try {
              ByteBuffer header = createHeader(bytes.length);
  
              safeWrite(header);
  
              ByteBuffer buffer = ByteBuffer.wrap(bytes);
  
              safeWrite(buffer);
  
          } catch (Exception e) {
              SysLog(Level.SEVERE, "Failed to send TCP bytes" + (retries > 0 ? " -- retrying " : "") + ": " + e);
  
              try {
                  channel.close();
              } catch (IOException ioe) {
              }
  
              if (retries > 0) {
                  try {
                      connectWithTimeout();
                  } catch (Exception connectException) {
                      SysLog(Level.SEVERE, "Failed to reconnect: " + connectException);
                      return false;
                  }
                  return sendTCPBytes(bytes, retries - 1);
              }
  
              return false;
          }
          return true;
      }