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 modbus_flush() function shall return 0 or the number of flushed
17 bytes if 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[1]>
22
24 1. stephane.raimbault@gmail.com
25 mailto:stephane.raimbault@gmail.com
26
27
28
29libmodbus 3.0.6 04/02/2014 MODBUS_FLUSH(3)