The UdpTarget type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| UdpTarget(IPAddress) |
Constructor
| |
| UdpTarget(IPAddress, Int32, Int32, Int32) |
Constructor.
|
Methods
| Name | Description | |
|---|---|---|
| Close |
Close network socket
(Inherited from UdpTransport.) | |
| Discovery |
Perform SNMP version 3 discovery operation. This is the first operation that needs to be
performed on a newly accessed agent to retrieve agentId, agentBoots and agentTime values, critical
for further authentication and privacy operations.
| |
| DiscoveryAsync |
Make an async discovery request for protocol version 3.
| |
| Dispose |
Dispose of the class.
(Inherited from UdpTransport.) | |
| Equals | (Inherited from Object.) | |
| Finalize |
Destructor
(Inherited from UdpTransport.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| initSocket |
Initialize class socket
(Inherited from UdpTransport.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Request(Pdu, IAgentParameters) | Make SNMP Request | |
| Request(IPAddress, Int32, array<Byte>[]()[][], Int32, Int32, Int32) |
Make sync request using IP/UDP with request timeouts and retries.
(Inherited from UdpTransport.) | |
| RequestAsync |
Make SNMP request. With this method you can make blocked SNMP version 1, 2 and 3 requests of type GET,
GET-NEXT, GET-BULK, SET and REPORT (request types have to compatible with the SNMP protocol version you
are using).
This method will pass through any exceptions thrown by parsing classes/methods so see individual packet
classes, ASN.1 type classes, authentication, privacy, etc. classes for exceptions thrown.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| _address |
SNMP request target host IP address
| |
| _agentParameters |
Internal storage of the agent parameters information passed to the async request member function.
| |
| _isIPv6 |
Flag showing if class is using IPv6 or IPv4
(Inherited from UdpTransport.) | |
| _noSourceCheck |
Internal variable used to disable host IP address/port number check on received SNMP reply packets. If this option is disabled (default)
only replies from the IP address/port number combination to which the request was sent will be accepted as valid packets.
This value is set in the AgentParameters class and is only valid for SNMP v1 and v2c requests.
(Inherited from UdpTransport.) | |
| _port |
SNMP target UDP port number
| |
| _retry |
Maximum number of retries. Value of 0 (zero) will result in a single request without
retries.
| |
| _socket |
Socket
(Inherited from UdpTransport.) | |
| _timeout |
SNMP request timeout value in milliseconds
|
Properties
| Name | Description | |
|---|---|---|
| Address |
Get/Set Udp agent IP address
| |
| IsBusy |
Is class busy. This property is true when class is servicing another request, false if
ready to process a new request.
(Inherited from UdpTransport.) | |
| IsIPv6 |
Flag used to determine if class is using IP version 6 (true) or IP version 4 (false)
(Inherited from UdpTransport.) | |
| Port |
Get/Set Udp agent port number
| |
| Retry |
Get/Set Udp agent maximum retry value. Value of 0 (zero) will result in a single request
being sent without further retry attempts.
| |
| Timeout |
Get/Set Udp agent timeout value in milliseconds
|
Events
| Name | Description | |
|---|---|---|
| _response |
Internal event to send result of the async request to.
|