Method Stdio.File()->set_callbacks()
- Method
set_callbacks
voidset_callbacks(read_callback_t|voidread_cb,write_callback_t|voidwrite_cb,close_callback_t|voidclose_cb,read_oob_callback_t|voidread_oob_cb,write_oob_callback_t|voidwrite_oob_cb)- Description
Installs all the specified callbacks at once. Use UNDEFINED to keep the current setting for a callback.
Like set_nonblocking, the callbacks are installed atomically. As opposed to set_nonblocking, this function does not do anything with the stream, and it doesn't even have to be open.
- See also
set_read_callback, set_write_callback, set_read_oob_callback, set_write_oob_callback, set_close_callback, query_callbacks