modbus_flush3
Flush non-transmitted data
Usage
int modbus_flush(modbus_t *ctx);
Overview
The modbus_flush() function shall discard data received but not read to the socket or file descriptor associated to the context ctx.
Return value
The function shall return 0 or the number of flushed bytes if successful. Otherwise it shall return -1 and set errno.
Releases
6 releases since Debian 7 (Wheezy); the text changed 5 times.