| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
SSL
SSL.sslfile

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

Method set_callbacks

  `void set_callbacks(void|function(mixed:int) read, void|function(mixed:int) write, void|function(mixed:int) close, void|function(mixed: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 , aet_accept_callback , query_callbacks