Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
SSL
SSL.sslfile

Method SSL.sslfile()->set_accept_callback()


Method set_accept_callback

void set_accept_callback(function(void|object: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.