From 7558861af77de9405decc8d88b2c799e15f266da Mon Sep 17 00:00:00 2001
From: Micael Karlberg handle_report/3 handle_invalid_result/2 The semantics of them and their exact signatures are explained
- below. Note that if an agent is registered using the old, no longer
- documented, functions (using Addr and Port), the old variant of the
- callback functions, handle_pdu, handle_trap, handle_inform and
- handle_report, will be called.
Some of the function has no defined return value (
+ This function is called when the manager needs to - communicate an "asynchronous" error, to the user: - e.g. failure to send an asynchronous message (i.e. encoding - error), a received message was discarded due to security - error, the manager failed to generate a response message to - a received inform-request, or when receiving an unexpected - PDU from an agent (could be an expired async request).
-If
If
For
This function is called when a message is received from an - unknown agent.
+This function is called when a message is received from an + unknown agent.
Note that this will always be the default user that is called.
-For more info about the
For more info about the
The arguments
The only user which would return
-
Handle the reply to an asynchronous request, such as
@@ -186,27 +200,19 @@
Handle a trap/notification message from an agent. For more info about the For more info about the The only user which would return
-
Handle a inform message.
-For more info about the
For more info about the
The only user which would return
-
If the
-
If the
+
Handle a report message.
-For more info about the
For more info about the
The only user which would return
-
If any of the other callback functions crashes + (exit, throw or a plain crash) or return an invalid result (if a valid + return has been specified), this function is called. + The purpose is to allow the user handle this + error (for instance to issue an error report).
+