modbus_flush man page

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

Referenced By

libmodbus(7).

04/02/2014 libmodbus 3.0.6 Libmodbus Manual