modbus_get_socket - Man Page
get the current socket of the context
Synopsis
int modbus_get_socket(modbus_t *ctx);
Description
The modbus_get_socket() function shall return the current socket or file descriptor of the libmodbus context.
Return Value
The function returns the current socket or file descriptor of the context if successful. Otherwise it shall return -1 and set errno.
See Also
Authors
The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>
Referenced By
libmodbus(7), modbus_set_socket(3).
05/25/2023 libmodbus v3.1.7 libmodbus Manual