1MODBUS_GET_SOCKET(3)           libmodbus Manual           MODBUS_GET_SOCKET(3)
2
3
4

NAME

6       modbus_get_socket - get the current socket of the context
7

SYNOPSIS

9       int modbus_get_socket(modbus_t *ctx);
10

DESCRIPTION

12       The modbus_get_socket() function shall return the current socket or
13       file descriptor of the libmodbus context.
14

RETURN VALUE

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

SEE ALSO

20       modbus_set_socket(3)
21

AUTHORS

23       The libmodbus documentation was written by Stéphane Raimbault
24       <stephane.raimbault@gmail.com>
25
26
27
28libmodbus v3.1.6                  07/21/2022              MODBUS_GET_SOCKET(3)
Impressum