logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

modbus_flush - flush non-transmitted data

Authors

       The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>

libmodbus v3.1.6                                   12/09/2019                                    MODBUS_FLUSH(3)

Description

       The modbus_flush() function shall discard data received but not read to the socket or file descriptor
       associated to the context ctx.

Name

       modbus_flush - flush non-transmitted data

Return Value

       The function shall return 0 or the number of flushed bytes if successful. Otherwise it shall return -1
       and set errno.

Synopsis

intmodbus_flush(modbus_t*ctx);

See Also