"Fossies" - the Fresh Open Source Software Archive

Member "man/man3/snmpa_notification_delivery_info_receiver.3" (17 Sep 2019, 2221 Bytes) of package /linux/misc/otp_doc_man_22.1.tar.gz:


Caution: As a special service "Fossies" has tried to format the requested manual source page into HTML format but links to other man pages may be missing or even erroneous. Alternatively you can here view or download the uninterpreted manual source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "snmpa_notification_delivery_info_receiver.3": 22.0_vs_22.1.

snmpa_notification_delivery_info_receiver

NAME
DESCRIPTION
DATA TYPES
EXPORTS

NAME

snmpa_notification_delivery_info_receiver −
Behaviour module for the SNMP agent notification delivery
information receiver.

DESCRIPTION

This module defines the behaviour of the notification delivery information receiver.

A snmpa_notification_delivery_info_receiver compliant module must export the following functions:

*

delivery_targets/3

*

delivery_info/4

The semantics of them and their exact signatures are explained below.

Legacy notification delivery information receiver modules used a target argument on the form {IpAddr, PortNumber} instead of {Domain, Addr}, and if the SNMP Agent is run without changing the configuration to use transport domains the notification delivery information receiver will still get the old arguments and work as before.

DATA TYPES

See the data types in snmpa_conf.

EXPORTS

delivery_targets(Tag, Targets, Extra) -> void()

Types:

Tag = term()
Targets = [Target]
Target = {transportDomain(), transportAddressWithPort()
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()

Types:

Tag = term()
Targets = [Target]
Target = {transportDomain(), transportAddressWithPort()
DeliveryResult = delivery_result()
delivery_result() = no_response | got_response
Extra = 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.