lxi\_receive(3) C Library Functions lxi\_receive(3)

# [NAME](#NAME)

lxi\_receive - receive message from LXI device

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;lxi.h&gt;**

**int lxi\_receive(int device, char \*message, int length, int timeout);**

# [DESCRIPTION](#DESCRIPTION)

The **lxi\_receive()** function receives up to *length* bytes in the message buffer pointed to by *message*

The *timeout* is in milliseconds.

# [RETURN VALUE](#RETURN_VALUE)

Upon successful completion **lxi\_receive()** returns the number of bytes successfully received, or **LXI\_ERROR** if an error occurred.

# [SEE ALSO](#SEE_ALSO)

[**lxi\_open**(3)](/man/enterprise-packages/liblxi/lxi_open.3), [**lxi\_send**(3)](/man/enterprise-packages/liblxi/lxi_send.3), [**lxi\_disconnect**(3)](/man/enterprise-packages/liblxi/lxi_disconnect.3),

2024-11-08 liblxi 1.22

---

Document: lxi_receive(3) from liblxi 1.22-r3 (Chainguard OS)
Source: https://github.com/lxi-tools/liblxi
