modbus_get_socket.txt 633 B

1234567891011121314151617181920212223242526272829303132333435
  1. modbus_get_socket(3)
  2. ====================
  3. NAME
  4. ----
  5. modbus_get_socket - get the current socket of the context
  6. SYNOPSIS
  7. --------
  8. *int modbus_get_socket(modbus_t *'ctx');*
  9. DESCRIPTION
  10. -----------
  11. The *modbus_get_socket()* function shall return the current socket or file
  12. descriptor of the libmodbus context.
  13. RETURN VALUE
  14. ------------
  15. The function returns the current socket or file descriptor of the context if
  16. successful. Otherwise it shall return -1 and set errno.
  17. SEE ALSO
  18. --------
  19. linkmb:modbus_set_socket[3]
  20. AUTHORS
  21. -------
  22. The libmodbus documentation was written by Stéphane Raimbault
  23. <stephane.raimbault@gmail.com>