SYNOPSIS

int modbus_receive_from(modbus_t *ctx, int sockfd, uint8_t *req);

DESCRIPTION

The modbus_receive_from() function shall receive an indication request from the socket/file descriptor given in argument 'sockfd. This function is used by Modbus slave/server to receive and analyze indication request sent by the masters/clients.

RETURN VALUE

The modbus_receive_from() function shall store the indication request in req and return the request length if sucessful. Otherwise it shall return -1 and set errno.

RELATED TO modbus_receive_from…

AUTHORS

The libmodbus documentation was written by St\('ephane Raimbault <\m[blue][email protected]\m[]\s-2\u[1]\d\s+2>

NOTES