Pike v8.1 release 6

Method SSL.sslfile()->set_accept_callback()


Method set_accept_callback

void set_accept_callback(function(void|object, void|mixed:int) accept)

Description

Install a function that will be called when the handshake is finished and the connection is ready for use.

The callback function will be called with the sslfile object and the additional id arguments (set with set_id).

Note

Like the read, write and close callbacks, installing this callback implies callback mode, even after the handshake is done.

See also

set_nonblocking, set_callbacks, query_accept_callback, query_callbacks