C# 클래스 SnmpSharpNet.AgentParameters

SNMP Agent specific values.
This class stores values to access SNMP version 1 and version 2 agents. Pass this class with your request data (Pdu) to the request method of the target class to make a request.
상속: IAgentParameters
파일 보기 프로젝트 열기: griffina/SnmpSharpNet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_community OctetString
_disableReplySourceCheck bool
_version Integer32

공개 메소드들

메소드 설명
AgentParameters ( ) : System

Standard constructor

AgentParameters ( AgentParameters second ) : System

Copy constructor. Initialize the class with the values of the parameter class values.

AgentParameters ( OctetString community ) : System

Constructor

AgentParameters ( SnmpVersion version ) : System

Constructor

AgentParameters ( SnmpVersion version, OctetString community ) : System

Constructor

AgentParameters ( SnmpVersion version, OctetString community, bool disableReplySourceCheck ) : System

Constructor

Clone ( ) : object

Clone current object

GetVersion ( ) : Integer32

Return SNMP version Integer32 object

InitializePacket ( SnmpPacket packet ) : void

Initialize SNMP packet class with agent parameters. In this class, SNMP community name is set in SNMPv1 and SNMPv2 packets.

Valid ( ) : bool

Validate object.

메소드 상세

AgentParameters() 공개 메소드

Standard constructor
public AgentParameters ( ) : System
리턴 System

AgentParameters() 공개 메소드

Copy constructor. Initialize the class with the values of the parameter class values.
public AgentParameters ( AgentParameters second ) : System
second AgentParameters Parameter class.
리턴 System

AgentParameters() 공개 메소드

Constructor
public AgentParameters ( OctetString community ) : System
community OctetString Agent SNMP community name
리턴 System

AgentParameters() 공개 메소드

Constructor
public AgentParameters ( SnmpVersion version ) : System
version SnmpVersion SNMP protocol version. Acceptable values are SnmpConstants.SNMPV1 and /// SnmpConstants.SNMPV2
리턴 System

AgentParameters() 공개 메소드

Constructor
public AgentParameters ( SnmpVersion version, OctetString community ) : System
version SnmpVersion SNMP Protocol version
community OctetString SNMP community name
리턴 System

AgentParameters() 공개 메소드

Constructor
public AgentParameters ( SnmpVersion version, OctetString community, bool disableReplySourceCheck ) : System
version SnmpVersion SNMP Protocol version
community OctetString SNMP community name
disableReplySourceCheck bool Should reply source IP address/port number be checked on reply reception
리턴 System

Clone() 공개 메소드

Clone current object
public Clone ( ) : object
리턴 object

GetVersion() 공개 메소드

Return SNMP version Integer32 object
public GetVersion ( ) : Integer32
리턴 Integer32

InitializePacket() 공개 메소드

Initialize SNMP packet class with agent parameters. In this class, SNMP community name is set in SNMPv1 and SNMPv2 packets.
public InitializePacket ( SnmpPacket packet ) : void
packet SnmpPacket Packet class to initialize
리턴 void

Valid() 공개 메소드

Validate object.
public Valid ( ) : bool
리턴 bool

프로퍼티 상세

_community 보호되어 있는 프로퍼티

SNMP community name for SNMP v1 and v2 protocol versions
protected OctetString _community
리턴 OctetString

_disableReplySourceCheck 보호되어 있는 프로퍼티

Flag that disables checking of host IP address and port number from which reply is received. If not disabled, only replies from the host IP/port to which request was sent will be considered valid and all others will be ignored. Default value is: false (reply source check is enabled) Set to true if you wish to disable this check.
protected bool _disableReplySourceCheck
리턴 bool

_version 보호되어 있는 프로퍼티

Agent protocol version
protected Integer32 _version
리턴 Integer32