# Method SSL.File()->set_callbacks()

Method set_callbacks

  ``void` set_callbacks(`void`|`Stdio.read_callback_t` `read`, `void`|`Stdio.write_callback_t` `write`, `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_oob` and `write_oob` are currently ignored.

See also

  set_read_callback, set_write_callback, set_close_callback, set_accept_callback, query_callbacks