Go to the source code of this file.
|
| typedef void(* | snmp_callback )(int reason, Snmp *session, Pdu &pdu, SnmpTarget &target, void *data) |
| | Async methods of the class Snmp require the caller to provide a callback address of a function with this typedef. More...
|
| |
| #define sNMP_PDU_GET_ASYNC 21 |
| #define sNMP_PDU_GETBULK_ASYNC 24 |
| #define sNMP_PDU_GETNEXT_ASYNC 22 |
| #define sNMP_PDU_INFORM_ASYNC 25 |
| #define sNMP_PDU_SET_ASYNC 23 |
| #define SNMP_PP_WITH_UDPADDR |
| typedef void(* snmp_callback)(int reason, Snmp *session, Pdu &pdu, SnmpTarget &target, void *data) |
Async methods of the class Snmp require the caller to provide a callback address of a function with this typedef.
- Note
- It is not allowed to call any synchronous Snmp methods within the callback. Async methods are allowed.
- Parameters
-
| reason | - Reason for callback (see snmperrs.h) |
| session | - Pointer to Snmp object that was used to send the request |
| pdu | - The received Pdu if reason indicates a received message |
| target | - source target |
| data | - Pointer passed to the async method |
Definition at line 77 of file uxsnmp.h.