1UPSCLI_SENDLINE(3)          Network UPS Tools (NUT)         UPSCLI_SENDLINE(3)
2
3
4

NAME

6       upscli_sendline - send a single command to a UPS
7

SYNOPSIS

9       #include <upsclient.h>
10
11       int upscli_sendline(UPSCONN *ups, const char *buf, size_t buflen);
12

DESCRIPTION

14       The upscli_sendline() function takes the pointer ups to a UPSCONN state
15       structure and transmits a buffer buf of size buflen to the server.
16
17       The data in buf must be a fully formatted protocol command as no  pars‐
18       ing of the buffer occurs within this function.
19

RETURN VALUE

21       The  upscli_sendline() function returns 0 on success, or -1 if an error
22       occurs.
23

SEE ALSO

25       upscli_fd(3),  upscli_get(3),  upscli_readline(3),  upscli_sendline(3),
26       upscli_splitname(3),  upscli_ssl(3),  upscli_strerror(3), upscli_upser‐
27       ror(3)
28
29
30
31                                Fri Sep  6 2002             UPSCLI_SENDLINE(3)
Impressum