modbus_receive_from.txt 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. modbus_receive_from(3)
  2. ======================
  3. NAME
  4. ----
  5. modbus_receive_from - receive a indication request from a socket
  6. SYNOPSIS
  7. --------
  8. *int modbus_receive_from(*modbus_t 'ctx', int sockfd, uint8_t *'req');*
  9. DESCRIPTION
  10. -----------
  11. The _modbus_receive_from()_ function shall receive an indication request from
  12. the socket/file descriptor given in argument 'sockfd. This function is used by
  13. Modbus slave/server to receive and analyze indication request sent by the
  14. masters/clients.
  15. RETURN VALUE
  16. ------------
  17. The _modbus_receive_from()_ function shall store the indication request in 'req'
  18. and return the request length if sucessful. Otherwise it shall return -1 and set
  19. errno.
  20. SEE ALSO
  21. --------
  22. linkmb:modbus_receive[3]
  23. AUTHORS
  24. -------
  25. The libmodbus documentation was written by Stéphane Raimbault
  26. <stephane.raimbault@gmail.com>