1REMCTL_NEW(3)              remctl Library Reference              REMCTL_NEW(3)
2
3
4

NAME

6       remctl_new - Create a new remctl client
7

SYNOPSIS

9       #include <remctl.h>
10
11       struct remctl *remctl_new(void);
12

DESCRIPTION

14       remctl_new() creates a new remctl client.  The resulting remctl struct
15       is opaque from the perspective of the caller, but should be the first
16       argument to all subsequent calls into the remctl API.  Normally, the
17       next call after remctl_new() would be remctl_open() to connect to a
18       remote server.
19
20       The resulting struct should be freed by calling remctl_close().
21

RETURN VALUE

23       remctl_new() returns a pointer to an opaque remctl struct on success
24       and NULL on failure.  If it returns NULL, errno will be set to an
25       appropriate error code (normally ENOMEM).
26

SEE ALSO

28       remctl_open(3), remctl_command(3), remctl_commandv(3), remctl_out‐
29       put(3), remctl_close(3)
30
31       The current version of the remctl library and complete details of the
32       remctl protocol are available from its web page at
33       <http://www.eyrie.org/~eagle/software/remctl/>.
34

AUTHOR

36       Russ Allbery <rra@stanford.edu>
37
38
39
402.11                              2007-06-29                     REMCTL_NEW(3)
Impressum