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

Method SSL.sslfile()->set_alert_callback()


Method set_alert_callback

void set_alert_callback(function(object:void) alert)

Description

Install a function that will be called when an alert packet is received. It doesn't affect the callback mode - it's called both from backends and from within normal function calls like read and write .

Note

This object is part of a cyclic reference whenever this is set, just like setting any other callback.