1gensio_acc_shutdown(3)     Library Functions Manual     gensio_acc_shutdown(3)
2
3
4

NAME

6       gensio_acc_shutdown,  gensio_acc_shutdown_s,  gensio_acc_disable,  gen‐
7       sio_acc_free - Stop/free a gensio accepter that is started up
8

SYNOPSIS

10       #include <gensio/gensio.h>
11
12       typedef void (*gensio_acc_done)(struct gensio_accepter *acc,
13                                          void *cb_data);
14
15       int gensio_acc_shutdown(struct gensio_accepter *accepter,
16                                          gensio_acc_done shutdown_done,
17                                          void *shutdown_data);
18
19       int gensio_acc_shutdown_s(struct gensio_accepter *accepter);
20
21       void gensio_acc_disable(struct gensio_accepter *accepter);
22
23       void gensio_acc_free(struct gensio_accepter *accepter);
24

DESCRIPTION

26       gensio_acc_shutdown Closes all sockets and disables everything  in  the
27       gensio  accepter.   shutdown_done()  will be called if successful after
28       the shutdown is complete, if it is not NULL.  Returns a GE_INUSE if the
29       accepter is already shut down, zero otherwise.
30
31       gensio_acc_shutdown_s  shuts  down the gensio and wait for the shutdown
32       to finish.  See the notes in gensio_close_s(3)  for  warning  on  using
33       this.
34
35       gensio_acc_disable  is  like gensio_disable(3), but for accepters.  See
36       gensio_disable(3) for details.
37
38       gensio_acc_free frees the network accepter.  If the network accepter is
39       started up, this shuts it down first and shutdown_done() is NOT called.
40

RETURN VALUES

42       Zero is returned on success, or a gensio error on failure.
43

SEE ALSO

45       gensio_err(3), gensio(5)
46
47
48
49                                  27 Feb 2019           gensio_acc_shutdown(3)
Impressum