C# 클래스 SnmpSharpNet.CTarget

Community based SNMP target. Used for SNMP version 1 and version 2c.
상속: ITarget
파일 보기 프로젝트 열기: griffina/SnmpSharpNet

보호된 프로퍼티들

프로퍼티 타입 설명
_address IpAddress
_community String
_port int
_retry int
_timeout int
_version SnmpVersion

공개 메소드들

메소드 설명
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

메소드 상세

CTarget() 공개 메소드

Constructor
public CTarget ( ) : System
리턴 System

CTarget() 공개 메소드

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

CTarget() 공개 메소드

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

CTarget() 공개 메소드

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
리턴 System

PreparePacketForTransmission() 공개 메소드

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
리턴 bool

Valid() 공개 메소드

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

ValidateReceivedPacket() 공개 메소드

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

프로퍼티 상세

_address 보호되어 있는 프로퍼티

Target IP address
protected IpAddress,SnmpSharpNet _address
리턴 IpAddress

_community 보호되어 있는 프로퍼티

SNMP community name
protected String _community
리턴 String

_port 보호되어 있는 프로퍼티

Target port number
protected int _port
리턴 int

_retry 보호되어 있는 프로퍼티

Target maximum retry count
protected int _retry
리턴 int

_timeout 보호되어 있는 프로퍼티

Target request timeout period in milliseconds
protected int _timeout
리턴 int

_version 보호되어 있는 프로퍼티

Target SNMP version number
protected SnmpVersion _version
리턴 SnmpVersion