REMCTL_NEW(3)
β¨ REMCTL_NEW(3) β¨
okay bestie, welcome to the remctl Library Reference π this is the little page about remctl_new(3), and it's literally the first thing you call. sit down, grab a strawberry π, let's go.
πΈ NAME πΈ
remctl_new β create a new remctl client β¨
π SYNOPSIS π
#include <remctl.h>
struct remctl *remctl_new(void);
π¦ DESCRIPTION π¦
so remctl_new() creates a new remctl client. that's it, that's the whole vibe. π
the resulting remctl struct is opaque from the caller's perspective β meaning like, you don't get to peek inside it, it's giving mysterious main character energy π
β but it should be the first argument to all subsequent calls into the remctl API. every single one. no cap.
normally, the very next call after remctl_new() would be remctl_open() to connect to a remote server. that's the natural order of things, the plot arc, the character development. π
and then β this part matters β the resulting struct should be freed by calling remctl_close(). don't just leave it lying around, bestie, that's not cute. π«Ά
π 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). so like, check your errno, she's trying to tell you something.
π COMPATIBILITY π
this interface has been provided by the remctl client library since its initial release in version 2.0. so she's been here since day one, an absolute icon, we stan a consistent API. π
π§ AUTHOR π§
Russ Allbery <eagle@eyrie.org>
π COPYRIGHT AND LICENSE π
Copyright 2007, 2009, 2014 The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
SPDX-License-Identifier: FSFAP
π₯ SEE ALSO π₯
The current version of the remctl library and complete details of the remctl protocol are available from its web page at <https://www.eyrie.org/~eagle/software/remctl/>.
and that's the whole page, bestie!! this was version 3.18, dated 2022-05-09, and it came to you straight from the remctl Library Reference. go forth and remctl_new() responsibly πβ¨π¦
π¦ where this page comes from
- debian bookworm: libremctl-dev 3.18-1+b7 Β· MIT
- debian trixie: libremctl-dev 3.18-3 Β· MIT
- epel 9: remctl-devel 3.18-1.el9 Β· MIT
- ubuntu noble: libremctl-dev 3.18-1.1build2 Β· MIT
- ubuntu questing: libremctl-dev 3.18-3
- ubuntu resolute: libremctl-dev 3.18-5build2 Β· MIT
- ubuntu stonking: libremctl-dev 3.18-5build3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms