modbus_flush(3) debian man page | unix.com

Man Page: modbus_flush

Operating Environment: debian

Section: 3

MODBUS_FLUSH(3) 						 Libmodbus Manual						   MODBUS_FLUSH(3)

NAME
modbus_flush - flush non-transmitted data
SYNOPSIS
int modbus_flush(modbus_t *ctx);
DESCRIPTION
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 modbus_flush() function shall return 0 or the number of flushed bytes if successful. Otherwise it shall return -1 and set errno.
AUTHORS
The libmodbus documentation was written by Stephane Raimbault <stephane.raimbault@gmail.com[1]>
NOTES
1. stephane.raimbault@gmail.com mailto:stephane.raimbault@gmail.com libmodbus 3.0.3 05/26/2012 MODBUS_FLUSH(3)
Related Man Pages
modbus_get_response_timeout(3) - debian
modbus_new_tcp(3) - debian
modbus_reply(3) - debian
modbus_report_slave_id(3) - debian
modbus_tcp_listen(3) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Is UNIX an open source OS ?
Introduction
One instance of comparing grep and awk