remctl_new(3)

remctl_new3

Create a new remctl client

Usage

#include <remctl.h>

struct remctl *remctl_new(void);

Overview

remctl_new() creates a new remctl client. The resulting remctl struct is opaque from the perspective of the caller, but should be the first argument to all subsequent calls into the remctl API. Normally, the next call after remctl_new() would be remctl_open() to connect to a remote server.

The resulting struct should be freed by calling remctl_close().

Return value

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

Compatibility

This interface has been provided by the remctl client library since its initial release in version 2.0.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 7 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12–13

Author

Russ Allbery <[email protected]>

From libremctl-dev 3.18-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.