1MODBUS_FLUSH(3)                Libmodbus Manual                MODBUS_FLUSH(3)
2
3
4

NAME

6       modbus_flush - flush non-transmitted data
7

SYNOPSIS

9       int modbus_flush(modbus_t *ctx);
10

DESCRIPTION

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

RETURN VALUE

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

AUTHORS

20       The libmodbus documentation was written by Stéphane Raimbault
21       <stephane.raimbault@gmail.com[1]>
22

NOTES

24        1. stephane.raimbault@gmail.com
25           mailto:stephane.raimbault@gmail.com
26
27
28
29libmodbus 3.0.8                   07/31/2019                   MODBUS_FLUSH(3)
Impressum