
notify_set_destroy_func()
Registers destroy_func() with the Notifier. destroy_func() is called when a
destroy event is posted to client or when the process receives a SIGTERM signal.
Notify_func
notify_set_destroy_func(client, destroy_func)
Notify_client client;
Notify_func destroy_func;
The format for the destroy function is:
Notify_value
destroy_func(client, status)
Notify_client client;
Destroy_status status;
notify_set_event_func()
Registers the event handler event_func() with the Notifier.
Notify_error
notify_set_event_func(client, event_func, type)
Notify_client client;
Notify_func event_func;
Notify_event_type type;
type is either NOTIFY_SAFE or NOTIFY_IMMEDIATE.
The format for the event function is:
Notify_value
event_func(client, event, arg, type)
Notify_client client;
Notify_event event;
Notify_arg arg;
Notify_event_type type;
notify_set_exception_func()
Registers the exception handler exception_func() with the Notifier. The only
known devices that generate exceptions at this time are stream-based socket connec-
tions when an out-of-band byte is available.
Notify_func
notify_set_exception_func(client, exception_func, fd)
Notify_client client;
Notify_func exception_func;
int fd;
The format for the exception function is:
Notify_value
exception_func(client, fd)
Notify_client client;
int fd;
Procedures and Macros
Procedures and Macros 195