Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
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 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 Stphane Raimbault
       <stephane.raimbault@gmail.com>

libmodbus v3.1.7		  04/12/2025		       MODBUS_FLUSH(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=modbus_flush&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help