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 function shall return 0 or the number of flushed bytes if
17       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>
22
23
24
25libmodbus v3.1.6                  02/04/2022                   MODBUS_FLUSH(3)
Impressum