Active Property

Enables or disables sending and receiving of SNMP packets.

Syntax

ANSI (Cross Platform)
int GetActive();
int SetActive(int bActive); Unicode (Windows) BOOL GetActive();
INT SetActive(BOOL bActive);
@property (nonatomic,readwrite,assign,getter=active,setter=setActive:) BOOL active;
- (BOOL)active;
- (void)setActive:(BOOL)newActive;
#define PID_SNMPAGENT_ACTIVE 2

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPAgent_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPAgent_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

FALSE

Remarks

The Active property must be set to True before any SNMP requests or traps are sent or received.

Note: The class will automatically set this property to True if it is not already and you attempt to send a request or trap.

This property is not available at design time.

Data Type

Boolean

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