5 modbus_get_socket - get the current socket of the context
10 int modbus_get_socket(modbus_t *'ctx');
15 The *modbus_get_socket()* function shall return the current socket or file
16 descriptor of the libmodbus context.
20 The function returns the current socket or file descriptor of the context if
21 successful. Otherwise it shall return -1 and set errno.
25 - [modbus_set_socket](modbus_set_socket.md)