logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

modbus_get_socket - get the current socket of the context

Authors

       The libmodbus documentation was written by Stéphane Raimbault <stephane.raimbault@gmail.com>

libmodbus v3.1.6                                   12/09/2019                               MODBUS_GET_SOCKET(3)

Description

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

Name

       modbus_get_socket - get the current socket of the 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

modbus_set_socket(3)

Synopsis

intmodbus_get_socket(modbus_t*ctx);

See Also