C# Class SnmpSharpNet.CTarget

Community based SNMP target. Used for SNMP version 1 and version 2c.
Inheritance: ITarget
Afficher le fichier Open project: griffina/SnmpSharpNet

Protected Properties

Свойство Type Description
_address IpAddress
_community String
_port int
_retry int
_timeout int
_version SnmpVersion

Méthodes publiques

Méthode Description
CTarget ( ) : System

Constructor

CTarget ( IPAddress addr ) : System

Constructor

CTarget ( IPAddress addr, String community ) : System

Constructor

CTarget ( IPAddress addr, int port, String community ) : System

Constructor

PreparePacketForTransmission ( SnmpPacket packet ) : bool

Prepare packet for transmission by filling target specific information in the packet.

Valid ( ) : bool

Check validity of the target information.

ValidateReceivedPacket ( SnmpPacket packet ) : bool

Validate received reply

Method Details

CTarget() public méthode

Constructor
public CTarget ( ) : System
Résultat System

CTarget() public méthode

Constructor
public CTarget ( IPAddress addr ) : System
addr System.Net.IPAddress Target address
Résultat System

CTarget() public méthode

Constructor
public CTarget ( IPAddress addr, String community ) : System
addr System.Net.IPAddress Target address
community String SNMP community name to use with the target
Résultat System

CTarget() public méthode

Constructor
public CTarget ( IPAddress addr, int port, String community ) : System
addr System.Net.IPAddress Target address
port int Taret UDP port number
community String SNMP community name to use with the target
Résultat System

PreparePacketForTransmission() public méthode

Prepare packet for transmission by filling target specific information in the packet.
public PreparePacketForTransmission ( SnmpPacket packet ) : bool
packet SnmpPacket SNMP packet class for the required version
Résultat bool

Valid() public méthode

Check validity of the target information.
public Valid ( ) : bool
Résultat bool

ValidateReceivedPacket() public méthode

Validate received reply
public ValidateReceivedPacket ( SnmpPacket packet ) : bool
packet SnmpPacket Received SNMP packet
Résultat bool

Property Details

_address protected_oe property

Target IP address
protected IpAddress,SnmpSharpNet _address
Résultat IpAddress

_community protected_oe property

SNMP community name
protected String _community
Résultat String

_port protected_oe property

Target port number
protected int _port
Résultat int

_retry protected_oe property

Target maximum retry count
protected int _retry
Résultat int

_timeout protected_oe property

Target request timeout period in milliseconds
protected int _timeout
Résultat int

_version protected_oe property

Target SNMP version number
protected SnmpVersion _version
Résultat SnmpVersion