modbus_receive_from man page

modbus_receive_from — receive a indication request from a socket

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.

See Also

modbus_receive(3)

Authors

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

Notes

1.

stephane.raimbault@gmail.com

mailto:stephane.raimbault@gmail.com

Info

04/02/2014 libmodbus 3.0.6 Libmodbus Manual