|
SNMP++
3.3.11
|
User based Target. More...
#include <target.h>


Public Member Functions | |
| UTarget () | |
| Constructor with no args. More... | |
| UTarget (const Address &address, const char *sec_name, const int sec_model) | |
| Constructor with all args. More... | |
| UTarget (const Address &address, const OctetStr &sec_name, const int sec_model) | |
| Constructor with all args. More... | |
| UTarget (const Address &address) | |
| Constructor with only address. More... | |
| UTarget (const UTarget &target) | |
| Constructor from existing UTarget. More... | |
| ~UTarget () | |
| Destructor, that has nothing to do. More... | |
| SnmpTarget * | clone () const |
| Clone operator. More... | |
| bool | set_address (const Address &address) |
| Set the address object. More... | |
| const OctetStr & | get_security_name () const |
| Get the security name. More... | |
| void | get_security_name (OctetStr &oct) const |
| Get the security name. More... | |
| void | set_security_name (const char *str) |
| Set the security name. More... | |
| void | set_security_name (const OctetStr &oct) |
| Set the security name. More... | |
| void | set_engine_id (const char *str) |
| Set the engine id. More... | |
| void | set_engine_id (const OctetStr &oct) |
| Set the engine id. More... | |
| const OctetStr & | get_engine_id () const |
| Get the engine id. More... | |
| void | get_engine_id (OctetStr &oct) const |
| Get the engine id. More... | |
| int | get_security_model () const |
| Get the security_model. More... | |
| void | set_security_model (int sec_model) |
| Set the security_model. More... | |
| UTarget & | operator= (const UTarget &target) |
| Overloaded assignment operator. More... | |
| virtual int | operator== (const UTarget &rhs) const |
| Overloeaded compare operator. More... | |
| bool | 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. More... | |
| void | clear () |
| Reset the object. More... | |
Public Member Functions inherited from SnmpTarget | |
| SnmpTarget () | |
| Create a SnmpTarget object with default values. More... | |
| SnmpTarget (const Address &address) | |
| Create a SnmpTarget object with the given Address. More... | |
| virtual | ~SnmpTarget () |
| Destructor that has nothing to do. More... | |
| target_type | get_type () const |
| Return the type of the target object. More... | |
| bool | valid () const |
| Returns the validity of the target object. More... | |
| void | set_retry (const int r) |
| Set the retry value. More... | |
| int | get_retry () const |
| Get the retry value. More... | |
| void | set_timeout (const unsigned long t) |
| Set the timeout for requests. More... | |
| unsigned long | get_timeout () const |
| Get the timeout. More... | |
| bool | get_address (GenAddress &address) const |
| Get the address object. More... | |
| const GenAddress & | get_address () const |
| Get the address object. More... | |
| snmp_version | get_version () const |
| Get the SNMP version for this target. More... | |
| void | set_version (const snmp_version v) |
| Set the SNMP version of this target. More... | |
| int | operator== (const SnmpTarget &rhs) const |
| Overloeaded compare operator. More... | |
Protected Attributes | |
| OctetStr | security_name |
| int | security_model |
| OctetStr | engine_id |
Protected Attributes inherited from SnmpTarget | |
| bool | validity |
| Validity of the object. More... | |
| unsigned long | timeout |
| xmit timeout in 10 milli secs More... | |
| int | retries |
| number of retries More... | |
| snmp_version | version |
| SNMP version to use. More... | |
| target_type | ttype |
| Type of the target. More... | |
| GenAddress | my_address |
| Address object. More... | |
Additional Inherited Members | |
Public Types inherited from SnmpTarget | |
| enum | target_type { type_base, type_ctarget, type_utarget } |
| Enum to identify a target object through SnmpTarget::get_type() method. More... | |
Static Public Member Functions inherited from SnmpTarget | |
| static void | set_default_timeout (const unsigned long t) |
| Change the default timeout. More... | |
| static void | set_default_retries (const int r) |
| Change the default retries vlaue. More... | |
Static Protected Attributes inherited from SnmpTarget | |
| static unsigned long | default_timeout |
| default timeout for new objects More... | |
| static int | default_retries |
| default retries for new objects More... | |
| UTarget::UTarget | ( | ) |
Constructor with no args.
The validity of the target will be false.
| UTarget::UTarget | ( | const Address & | address, |
| const char * | sec_name, | ||
| const int | sec_model | ||
| ) |
Constructor with all args.
| address | - Address of the target host (cann be any address object) |
| sec_name | - The security name |
| sec_model | - The security model to use |
Constructor with all args.
| address | - Address of the target host (cann be any address object) |
| sec_name | - The security name |
| sec_model | - The security model to use |
| UTarget::UTarget | ( | const Address & | address | ) |
|
inline |
|
virtual |
Reset the object.
Reimplemented from SnmpTarget.
|
inlinevirtual |
Clone operator.
Clone operation for creating a new UTarget from an existing UTarget.
Reimplemented from SnmpTarget.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Overloeaded compare operator.
Two UTarget objects are considered equal, if all member variables (beside the engine id) and the base classes are equal.
| bool UTarget::resolve_to_U | ( | OctetStr & | sec_name, |
| int & | sec_model, | ||
| GenAddress & | address, | ||
| unsigned long & | t, | ||
| int & | r, | ||
| unsigned char & | v | ||
| ) | const |
|
virtual |
Set the address object.
This method is the same as in SnmpTarget, but it deletes engine_id.
| address | - The address that this target should use. |
Reimplemented from SnmpTarget.
|
inline |
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.
| str | - The engine id to use |
|
inline |
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.
| oct | - The engine id to use |
|
inline |
|
inline |
|
inline |