C# Class SnmpSharpNet.CTarget

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

Protected Properties

Property Type Description
_address IpAddress
_community String
_port int
_retry int
_timeout int
_version SnmpVersion

Public Methods

Method 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 method

Constructor
public CTarget ( ) : System
return System

CTarget() public method

Constructor
public CTarget ( IPAddress addr ) : System
addr System.Net.IPAddress Target address
return System

CTarget() public method

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

CTarget() public method

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
return System

PreparePacketForTransmission() public method

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
return bool

Valid() public method

Check validity of the target information.
public Valid ( ) : bool
return bool

ValidateReceivedPacket() public method

Validate received reply
public ValidateReceivedPacket ( SnmpPacket packet ) : bool
packet SnmpPacket Received SNMP packet
return bool

Property Details

_address protected_oe property

Target IP address
protected IpAddress,SnmpSharpNet _address
return IpAddress

_community protected_oe property

SNMP community name
protected String _community
return String

_port protected_oe property

Target port number
protected int _port
return int

_retry protected_oe property

Target maximum retry count
protected int _retry
return int

_timeout protected_oe property

Target request timeout period in milliseconds
protected int _timeout
return int

_version protected_oe property

Target SNMP version number
protected SnmpVersion _version
return SnmpVersion