1MODBUS_GET_SOCKET(3) libmodbus Manual MODBUS_GET_SOCKET(3)
2
3
4
6 modbus_get_socket - get the current socket of the context
7
9 int modbus_get_socket(modbus_t *ctx);
10
12 The modbus_get_socket() function shall return the current socket or
13 file descriptor of the libmodbus context.
14
16 The function returns the current socket or file descriptor of the
17 context if successful. Otherwise it shall return -1 and set errno.
18
20 modbus_set_socket(3)
21
23 The libmodbus documentation was written by Stéphane Raimbault
24 <stephane.raimbault@gmail.com>
25
26
27
28libmodbus v3.1.7 07/20/2023 MODBUS_GET_SOCKET(3)