DiscoveryResponse Event

Fired when an SNMPv3 discovery response is received.

Syntax

ANSI (Cross Platform)
virtual int FireDiscoveryResponse(SNMPMgrDiscoveryResponseEventParams *e);
typedef struct {
const char *EngineId; int lenEngineId;
int EngineBoots;
int EngineTime;
const char *User;
int SecurityLevel;
const char *SourceAddress;
int SourcePort; int reserved; } SNMPMgrDiscoveryResponseEventParams; Unicode (Windows) virtual INT FireDiscoveryResponse(SNMPMgrDiscoveryResponseEventParams *e);
typedef struct {
LPCSTR EngineId; INT lenEngineId;
INT EngineBoots;
INT EngineTime;
LPCWSTR User;
INT SecurityLevel;
LPCWSTR SourceAddress;
INT SourcePort; INT reserved; } SNMPMgrDiscoveryResponseEventParams;
- (void)onDiscoveryResponse:(NSData*)engineId :(int)engineBoots :(int)engineTime :(NSString*)user :(int)securityLevel :(NSString*)sourceAddress :(int)sourcePort;
#define EID_SNMPMGR_DISCOVERYRESPONSE 3

virtual INT IPWORKSSNMP_CALL FireDiscoveryResponse(LPSTR &lpEngineId, INT &lenEngineId, INT &iEngineBoots, INT &iEngineTime, LPSTR &lpszUser, INT &iSecurityLevel, LPSTR &lpszSourceAddress, INT &iSourcePort);

Remarks

EngineId, EngineBoots, EngineTime, and User are the values received from SourceAddress and SourcePort.

The SecurityLevel parameter shows whether the request has been authenticated. If SecurityLevel is 0, the request has NOT been authenticated (i.e. the packet signature has not been verified). For an authenticated request, SecurityLevel is at least 1.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]