1gensio_acc_set_accept_callbaLcikb_reanrayblFeu(n3cg)teinosniso_Maacncu_aslet_accept_callback_enable(3)
2
3
4

NAME

6       gensio_acc_set_accept_callback_enable,      gensio_acc_set_accept_call‐
7       back_enable_cb,  gensio_acc_set_accept_callback_enable_s  -  Enable  or
8       disable the accept ready callback
9

SYNOPSIS

11       #include <gensio/gensio.h>
12
13       void gensio_acc_set_accept_callback_enable(
14                           struct gensio_accepter *accepter,
15                           bool enabled);
16
17       int gensio_acc_set_accept_callback_enable_cb(
18                           struct gensio_accepter *accepter,
19                                        bool enabled,
20                                        gensio_acc_done done,
21                                        void *done_data);
22
23       int gensio_acc_set_accept_callback_enable_s(
24                           struct gensio_accepter *accepter,
25                                        bool enabled);
26

DESCRIPTION

28       These  functions  enable/disable  the  accept callback when connections
29       come in.
30
31       gensio_acc_set_accept_callback_enable will do an asynchronous  disable.
32       Note that this can race with pending and running callbacks, you must be
33       prepared to handle these races.
34
35       gensio_acc_set_accept_callback_enable_cb is like the above,  but  do  a
36       callback  when the enable is complete.  Really only useful for disable,
37       when the done callback is called then no more accepts  will  be  called
38       and  all callbacks are done.  Note that if you call this, you cannot do
39       another enable/disable until done is called.
40
41       gensio_acc_set_accept_callback_enable_s Like above, but  a  synchronous
42       call.   See  the notes on gensio_open_s() for the dangers of using this
43       function.
44

RETURN VALUES

46       Zero is returned on success, or a gensio error on failure.
47

SEE ALSO

49       gensio_err(3), gensio(5), gensio_open_s(3)
50
51
52
53                                  27 Fegben2s0i1o9_acc_set_accept_callback_enable(3)
Impressum