#include <libsnmp.h>
#include "snmp_pp/reentrant.h"
#include "snmp_pp/target.h"
#include "snmp_pp/oid.h"
#include "snmp_pp/address.h"
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...
|
|
◆ INVALID_SOCKET
◆ MAX_ADDR_LEN
◆ MAXNAME
◆ sNMP_PDU_GET_ASYNC
#define sNMP_PDU_GET_ASYNC 21 |
◆ sNMP_PDU_GETBULK_ASYNC
#define sNMP_PDU_GETBULK_ASYNC 24 |
◆ sNMP_PDU_GETNEXT_ASYNC
#define sNMP_PDU_GETNEXT_ASYNC 22 |
◆ sNMP_PDU_INFORM_ASYNC
#define sNMP_PDU_INFORM_ASYNC 25 |
◆ sNMP_PDU_SET_ASYNC
#define sNMP_PDU_SET_ASYNC 23 |
◆ SNMP_PP_WITH_UDPADDR
#define SNMP_PP_WITH_UDPADDR |
◆ snmp_callback
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 78 of file uxsnmp.h.
◆ setCloseOnExecFlag()
Set the FD_CLOEXEC flag on the given socket.
- Parameters
-
- Returns
- true on success