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

NAME

6       remctl_close - Close a remctl connection and free the client object
7

SYNOPSIS

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

DESCRIPTION

14       remctl_close() cleanly closes any connection to a remote server created
15       via remctl_open() for the given client object and then frees the object
16       created by remctl_new().  It should be called when the caller is fin‐
17       ished with a remctl client object to avoid resource leaks.  Following
18       the call to remctl_close(), the r pointer to the remctl client object
19       is no longer valid.
20
21       remctl_close() is always successful, even if it is unable to send a
22       clean protocol quit command to the remote server.
23

SEE ALSO

25       remctl_new(3), remctl_open(3)
26
27       The current version of the remctl library and complete details of the
28       remctl protocol are available from its web page at
29       <http://www.eyrie.org/~eagle/software/remctl/>.
30

AUTHOR

32       Russ Allbery <rra@stanford.edu>
33
34
35
362.11                              2007-06-29                   REMCTL_CLOSE(3)
Impressum