gensio_acc_control(3)
β¨ gensio_acc_control β the girlies' guide to gensio accepter actions β¨
okay bestie, pull up a chair, we're doing gensio_acc_control(3) from the Library Functions Manual, and honestly? it's giving backstage pass to your accepter π
π NAME
gensio_acc_control β do gensio accepter specific actions. that's it, that's the whole vibe π¦
πΈ SYNOPSIS
#include <gensio/gensio.h>
int gensio_acc_control(struct gensio_accepter *acc, int depth,
bool get, unsigned int option,
char *data, gensiods *datalen);
π DESCRIPTION
gensio_acc_control performs a gensio accepter specific operation on the gensio accepter. no cap. it works exactly like gensio_control(3), so if you need the tea on get, depth, and how data and datalen do their little dance, go read that one β this function is literally just that, but for accepters π
the gensio control operations in option depend on the particular gensio. some of them are documented down below, but bestie, there may be other controls available that aren't listed here. check the gensio documentation in gensio(5) for the full scoop β¨
π₯ GENSIO_ACC_CONTROL_LADDR
returns the given local address for the given gensio. and here's the thing β a single gensio can have more than one local address, so this control is how you tell it which one you're asking about π
the data string you pass in should be the string representation of a number (like the kind you'd create with snprintf()) for the particular index you want to fetch. if you specify a number larger than the number of open listen sockets, you get GE_NOTFOUND back. rude, but fair π
the return data is a string holding the address.
heads up: a single fetched string may contain more than one address, and those get separated by semicolons. in some cases addresses may change dynamically (like with SCTP), so you get a single set of addresses. slay, but keep up π§
π¦ GENSIO_ACC_CONTROL_LPORT
returns the port for the given local address for the given gensio. same situation as above β one gensio, possibly many local addresses, so this control tells you which one you mean β¨
the data string passed in should be the string representation of a number (like created with snprintf()) for the particular index you want to fetch. and again: specify a number larger than the number of open listen sockets and GE_NOTFOUND is what you get. no cap. π
the return data is a string holding the port number.
π GENSIO_ACC_CONTROL_TCPDNAME
get or set the TCPD name for the gensio. only for TCP gensios, bestie β don't try it anywhere else π
β RETURN VALUES
zero is returned on success, or a gensio error on failure. that's the whole vibe check: 0 = iconic, anything else = we have a problem π
π SEE ALSO
go read them, iykyk π«Ά
and that's the whole page, bestie! this little love letter to accepters is brought to you by the Library Functions Manual, dated 27 Feb 2019 β gensio_acc_control(3), periodt π
β¨
π¦ where this page comes from
- alpine 3.22: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- alpine 3.23: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- alpine 3.24: gensio-doc 2.8.14-r0 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- arch rolling: gensio 3.0.4-1 Β· GPL
- debian bookworm: libgensio-dev 2.6.2-4 Β· GPL-2.0-only
- debian trixie: libgensio-dev 2.8.13-7 Β· GPL-2.0-only
- epel 9: libgensio-devel 2.8.15-1.el9 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 2.8.15-5.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 2.8.15-5.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 3.0.4-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 43: libgensio-devel 3.0.4-1.fc43 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.2-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.2-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.4-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- fedora 44: libgensio-devel 3.0.4-1.fc44 Β· GPL-2.0-only AND LGPL-2.1-only AND Apache-2.0
- nixos 26.05: gensio 3.0.2
- nixpkgs unstable: gensio 3.0.2
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- opensuse-leap 16.0: gensio-devel 2.8.2-bp160.1.13 Β· Apache-2.0 AND GPL-2.0-only AND LGPL-2.1-only
- ubuntu jammy: libgensio-dev 2.3.5-1build2 Β· GPL-2.0-only
- ubuntu noble: libgensio-dev 2.8.2-6.1build1 Β· GPL-2.0-only
- ubuntu questing: libgensio-dev 2.8.13-7
- ubuntu resolute: libgensio-dev 3.0.0-1build1 Β· GPL-2.0-only
- ubuntu stonking: libgensio-dev 3.0.0-1ubuntu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms