RemotePort Property

The port where the remote SNMP agent is listening.

Syntax

ANSI (Cross Platform)
int GetRemotePort();
int SetRemotePort(int iRemotePort); Unicode (Windows) INT GetRemotePort();
INT SetRemotePort(INT iRemotePort);
@property (nonatomic,readwrite,assign,getter=remotePort,setter=setRemotePort:) int remotePort;
- (int)remotePort;
- (void)setRemotePort:(int)newRemotePort;
#define PID_SNMPMGR_REMOTEPORT 23

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

161

Remarks

The RemotePort is the port on the RemoteHost to send SNMP requests to.

A valid port number (a value between 1 and 65535) is required. The default value is 161.

Data Type

Integer

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