#include <target.h>
Inheritance diagram for UTarget:
This class is used for SNMPv3 targets.
Definition at line 469 of file target.h.
Public Member Functions | |
| UTarget () | |
| Constructor with no args. | |
| UTarget (const Address &address, const char *sec_name, const int sec_model) | |
| Constructor with all args. | |
| UTarget (const Address &address, const OctetStr &sec_name, const int sec_model) | |
| Constructor with all args. | |
| UTarget (const Address &address) | |
| Constructor with only address. | |
| UTarget (const UTarget &target) | |
| Constructor from existing UTarget. | |
| ~UTarget () | |
| Destructor, that has nothing to do. | |
| SnmpTarget * | clone () const |
| Clone operator. | |
| int | set_address (const Address &address) |
| Set the address object. | |
| const OctetStr & | get_security_name () const |
| Get the security name. | |
| void | get_security_name (OctetStr &oct) const |
| Get the security name. | |
| void | set_security_name (const char *str) |
| Set the security name. | |
| void | set_security_name (const OctetStr &oct) |
| Set the security name. | |
| void | set_engine_id (const char *str) |
| Set the engine id. | |
| void | set_engine_id (const OctetStr &oct) |
| Set the engine id. | |
| const OctetStr & | get_engine_id () const |
| Get the engine id. | |
| void | get_engine_id (OctetStr &oct) const |
| Get the engine id. | |
| int | get_security_model () const |
| Get the security_model. | |
| void | set_security_model (int sec_model) |
| Set the security_model. | |
| UTarget & | operator= (const UTarget &target) |
| Overloaded assignment operator. | |
| virtual int | operator== (const UTarget &rhs) const |
| Overloeaded compare operator. | |
| int | resolve_to_U (OctetStr &sec_name, int &sec_model, GenAddress &address, unsigned long &t, int &r, unsigned char &v) const |
| Get all values of a UTarget object. | |
| void | clear () |
| Reset the object. | |
Protected Attributes | |
| OctetStr | security_name |
| int | security_model |
| OctetStr | engine_id |
|
|
Constructor with no args. The validity of the target will be false. |
|
||||||||||||||||
|
Constructor with all args.
|
|
||||||||||||||||
|
Constructor with all args.
|
|
|
Constructor with only address. Assumes the following defaults: security_name: initial, version: SNMPv3, security_model: v3MP.
|
|
|
Constructor from existing UTarget.
|
|
|
Destructor, that has nothing to do.
|
|
|
Reset the object.
Reimplemented from SnmpTarget. |
|
|
Clone operator. Clone operation for creating a new UTarget from an existing UTarget.
Reimplemented from SnmpTarget. |
|
|
Get the engine id.
|
|
|
Get the engine id.
|
|
|
Get the security_model.
|
|
|
Get the security name.
|
|
|
Get the security name.
|
|
|
Overloaded assignment operator.
|
|
|
Overloeaded compare operator. Two UTarget objects are considered equal, if all member variables (beside the engine id) and the base classes are equal.
|
|
||||||||||||||||||||||||||||
|
Get all values of a UTarget object.
|
|
|
Set the address object. This method is the same as in SnmpTarget, but it deletes engine_id.
Reimplemented from SnmpTarget. |
|
|
Set the engine id. In most cases it is not necessary for the user to set the engine id as snmp++ performs engine id discovery. If the engine id is set by the user, no engine_id discovery is made, even if the engine id set by the user is wrong.
|
|
|
Set the engine id. In most cases it is not necessary for the user to set the engine id as snmp++ performs engine id discovery. If the engine id is set by the user, no engine_id discovery is made, even if the engine id set by the user is wrong.
|
|
|
Set the security_model.
|
|
|
Set the security name.
|
|
|
Set the security name.
|
|
|
|
|
|
|
|
|
|
1.3.2