gensio_acc_set_accept_callback_enable,
- Provided by: libgensio-dev (Version: 2.3.5-1build2)
- Source: gensio
- Report a bug
#include <gensio/gensio.h>
These functions enable/disable the accept callback when connections come in.
gensio_acc_set_accept_callback_enable will do an asynchronous disable. Note that this can race with pending and running callbacks, you must be prepared to handle these races.
gensio_acc_set_accept_callback_enable_cb is like the above, but do a callback when the enable is complete. Really only useful for disable, when the done callback is called then no more accepts will be called and all callbacks are done.
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.
Zero is returned on success, or a gensio error on failure.