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_SNMPTCPMGR_REMOTEPORT 23 IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_SNMPTCPMgr_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