Community Property

The community string used to authenticate SNMP packets.

Syntax

ANSI (Cross Platform)
char* GetCommunity();
int SetCommunity(const char* lpszCommunity); Unicode (Windows) LPWSTR GetCommunity();
INT SetCommunity(LPCWSTR lpszCommunity);
@property (nonatomic,readwrite,assign,getter=community,setter=setCommunity:) NSString* community;
- (NSString*)community;
- (void)setCommunity:(NSString*)newCommunity;
#define PID_SNMPMGR_COMMUNITY 5

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

Default Value

"public"

Remarks

Must match the community name that is specified on the agent.

Typical values are "public" or "private".

This property is used for all SNMP packets sent by the class.

Data Type

String

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