Debian Codegraph @

docs/modbus_flush.md

raw symbols SCIP
1 # modbus_flush
2
3 ## Name
4
5 modbus_flush - flush non-transmitted data
6
7 ## Synopsis
8
9 ```c
10 int modbus_flush(modbus_t *ctx);
11 ```
12
13 ## Description
14
15 The *modbus_flush()* function shall discard data received but not read to the
16 socket or file descriptor associated to the context 'ctx'.
17
18 ## Return value
19
20 The function shall return 0 or the number of flushed bytes if
21 successful. Otherwise it shall return -1 and set errno.