snmpa_notification_delivery_info_receiver
(snmp)Behaviour module for the SNMP agent notification delivery information receiver.
This module defines the behaviour of the notification delivery information receiver.
A snmpa_notification_delivery_info_receiver compliant module
must export the following functions:
The semantics of them and their exact signatures are explained below.
DATA TYPES
address() = A 4-tuple
Functions
delivery_targets(Tag, Targets, Extra) -> void()
Tag = term()Targets = [target()]target() = {Address, Port}Address = address()Port = integer()Extra = term()
Inform about target addresses.
This is the first function called when a notification delivery is
in progress. It informs the receiver which targets will
get the notification. The result of the delivery will be
provided via successive calls to delivery_info/4 function,
see below.
delivery_info(Tag, Target, DeliveryResult, Extra) -> void()
Tag = term()Target = target()target() = {Address, Port}Address = address()Port = integer()DeliveryResult = delivery_result()delivery_result() = no_response | got_responseExtra = term()
Inform about delivery result.
This function is called for each target in the Targets
argument of the delivery_targets/3 function, see above.
The purpose is to inform the receiver of the
result of the delivery (was the notification acknowledged or
not) for each target.