GENSIO_ACC_SET_ACCEPT_CALLBACK_ENABLE_S(3)
β¨ gensio_acc_set_accept_callback_enable π
okay bestie, welcome to gensio_acc_set_accept_callback_enable(3) β it's a Library Functions Manual page, and it's literally about the accept callback, so if you're out here accepting connections you're gonna wanna read this. no skipping π«Ά
πΈ NAME πΈ
gensio_acc_set_accept_callback_enable, gensio_acc_set_accept_callback_enable_cb, gensio_acc_set_accept_callback_enable_s β Enable or disable the accept ready callback β¨
π SYNOPSIS π
#include <gensio/gensio.h>
void gensio_acc_set_accept_callback_enable(
struct gensio_accepter *accepter,
bool enabled);
int gensio_acc_set_accept_callback_enable_cb(
struct gensio_accepter *accepter,
bool enabled,
gensio_acc_done done,
void *done_data);
int gensio_acc_set_accept_callback_enable_s(
struct gensio_accepter *accepter,
bool enabled);
π DESCRIPTION π
so these three functions are your little on/off switch for the accept callback, like when connections come in. enable/disable the accept callback when connections come in, that's the whole vibe. π
gensio_acc_set_accept_callback_enable β this one does an asynchronous disable. and like, heads up bestie: this can race with pending and running callbacks, so you must be prepared to handle these races. no cap, it's just how it is. π
gensio_acc_set_accept_callback_enable_cb β same energy as the one above, except it does a callback when the enable is complete. it's really only useful for disable, because when the done callback fires, that means no more accepts will be called and all callbacks are done. and listen: if you call this, you cannot do another enable/disable until done is called. periodt. π
gensio_acc_set_accept_callback_enable_s β like above, but a synchronous call. see the notes on gensio_open_s() for the dangers of using this function. yes, dangers. go read them. π
β RETURN VALUES β
Zero is returned on success, or a gensio error on failure. that's it, that's the whole thing. slay. β¨
π¦ SEE ALSO π¦
π and that's the page, bestie! go forth and accept those connections responsibly, and remember: races are real, synchronous calls are spicy, and you are the main character. iykyk π
this iconic little page is dated 27 Feb 2019 and comes to you straight from the gensio library, gensio_acc...back_enable(3) β mwah, no notes, obsessed. ππ«Άπ
π¦ 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 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