modbus_receive_from(3)

modbus_receive_from3

Receive a indication request from a socket

Usage

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

Overview

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.

Notes

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

Authors

The libmodbus documentation was written by Stéphane Raimbault <[email protected][1]>

From libmodbus-dev 3.0.6-2 in Debian 9 (Stretch). Parsed by carta from the page's man source.