Provided by: libmodbus-dev_3.0.6-2+deb9u1build0.18.04.1_amd64
NAME
modbus_flush - flush non-transmitted data
SYNOPSIS
int modbus_flush(modbus_t *ctx);
DESCRIPTION
The modbus_flush() function shall discard data received but not read to the socket or file descriptor associated to the context ctx.
RETURN VALUE
The modbus_flush() function shall return 0 or the number of flushed bytes if successful. Otherwise it shall return -1 and set errno.
AUTHORS
The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com[1]>
NOTES
1. stephane.raimbault@gmail.com mailto:stephane.raimbault@gmail.com