1MODBUS_FLUSH(3) libmodbus Manual MODBUS_FLUSH(3)
2
3
4
6 modbus_flush - flush non-transmitted data
7
9 int modbus_flush(modbus_t *ctx);
10
12 The modbus_flush() function shall discard data received but not read to
13 the socket or file descriptor associated to the context ctx.
14
16 The function shall return 0 or the number of flushed bytes if
17 successful. Otherwise it shall return -1 and set errno.
18
20 The libmodbus documentation was written by Stéphane Raimbault
21 <stephane.raimbault@gmail.com>
22
23
24
25libmodbus v3.1.6 07/21/2022 MODBUS_FLUSH(3)