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

# [NAME](#NAME)

lxi\_send - send message to LXI device

# [SYNOPSIS](#SYNOPSIS)

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

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

# [DESCRIPTION](#DESCRIPTION)

The **lxi\_send()** function sends *length* bytes from the message buffer pointed to by *message*

The *timeout* is in milliseconds.

# [RETURN VALUE](#RETURN_VALUE)

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

# [SEE ALSO](#SEE_ALSO)

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

2024-11-08 liblxi 1.22

---

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