GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
gensio_acc_set_accept_callback_enable(3) FreeBSD Library Functions Manual gensio_acc_set_accept_callback_enable(3)

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

#include <gensio/gensio.h>


struct gensio_accepter *accepter,
bool enabled);

struct gensio_accepter *accepter,
bool enabled,
gensio_acc_done done,
void *done_data);

struct gensio_accepter *accepter,
bool enabled);

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. Note that if you call this, you cannot do another enable/disable until done is called.

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.

gensio_err(3), gensio(5), gensio_open_s(3)

27 Feb 2019

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.