Method SSL.File()->set_callbacks()
- Method
set_callbacks
voidset_callbacks(void|Stdio.read_callback_tread,void|Stdio.write_callback_twrite,void|function(mixed:int)close,void|function(mixed,string:int)read_oob,void|function(mixed:int)write_oob,void|function(void|mixed:int)accept)- 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.
- Bugs
read_oobandwrite_oobare currently ignored.- See also
set_read_callback, set_write_callback, set_close_callback, set_accept_callback, query_callbacks