modbus_flush.txt 564 B

123456789101112131415161718192021222324252627282930
  1. modbus_flush(3)
  2. ===============
  3. NAME
  4. ----
  5. modbus_flush - flush non-transmitted data
  6. SYNOPSIS
  7. --------
  8. *int modbus_flush(modbus_t *'ctx');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_flush()* function shall discard data received but not read to the
  12. socket or file descriptor associated to the context 'ctx'.
  13. RETURN VALUE
  14. ------------
  15. The function shall return 0 or the number of flushed bytes if
  16. successful. Otherwise it shall return -1 and set errno.
  17. AUTHORS
  18. -------
  19. The libmodbus documentation was written by Stéphane Raimbault
  20. <stephane.raimbault@gmail.com>