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
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_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