|
| | MibProxy () |
| | Default constructor.
|
| |
| | MibProxy (const MibProxy &other) |
| | Copy constructor.
|
| |
| | MibProxy (const Oidx &, mib_access, const NS_SNMP UdpAddress &) |
| | Simple proxy registration.
|
| |
| | MibProxy (const Oidx &, mib_access, const Oidx &, const NS_SNMP UdpAddress &) |
| | Proxy registration with oid translation.
|
| |
| virtual | ~MibProxy () |
| | Destructor.
|
| |
| virtual mib_type | type () const |
| | Return type of the MIB entry.
|
| |
| virtual MibEntry * | clone () |
| | Clone.
|
| |
| virtual OidxPtr | max_key () |
| | Return the immediate successor of the greatest object identifier within the receiver's scope.
|
| |
| virtual Oidx | find_succ (const Oidx &, Request *r=0) |
| | Find the successor of the given OID in the proxied MIB view and cache its value for a possibly following get_next_request call.
|
| |
| virtual bool | is_empty () |
| | Check whether the reciever node contains any instance of a managed object.
|
| |
| virtual void | get_request (Request *, int) |
| | Let the receiver process a SNMP GET subrequest.
|
| |
| virtual int | commit_set_request (Request *, int) |
| | Let the receiver commit a SNMP SET subrequest.
|
| |
| virtual int | prepare_set_request (Request *, int &) |
| | Let the receiver prepare a SNMP SET subrequest.
|
| |
| virtual void | get_next_request (Request *, int) |
| | Let the receiver process a SNMP GETNEXT subrequest.
|
| |
| void | set_community (access_types a, const NS_SNMP OctetStr &c) |
| | Set the READ and WRITE community for outgoing requests, respectively.
|
| |
| | MibEntry () |
| | Default constructor.
|
| |
| | MibEntry (const Oidx &, mib_access) |
| | Construct a MibEntry instance with a given object identifier and maximum access rights.
|
| |
| | MibEntry (const MibEntry &) |
| | Copy constructor.
|
| |
| virtual | ~MibEntry () |
| | Destructor.
|
| |
| virtual int | undo_set_request (Request *, int &) |
| | Clean up resources used for performing (or undoing) set requests.
|
| |
| virtual void | cleanup_set_request (Request *, int &) |
| | Set the receiver's value and backup its old value for a later undo.
|
| |
| virtual void | load_from_file (const char *) |
| | Load the value(s) of the receiver node from a file.
|
| |
| virtual void | save_to_file (const char *) |
| | Save the value(s) of the receiver node to a file.
|
| |
| virtual bool | serialize (char *&, int &) |
| | Serialize the value of the receiver.
|
| |
| virtual bool | deserialize (char *, int &) |
| | Read the value of the receiver from a byte stream.
|
| |
| virtual void | notify_change (const Oidx &, mib_change) |
| | Notify all registered nodes of changes to an object managed by the receiver node.
|
| |
| virtual void | register_for_notifications (MibEntry *) |
| | Register an MibEntry object to receive notifications about changes of the receiver node.
|
| |
| virtual void | add_change_notification (MibEntry *e) |
| | Wrapper function for register_for_notifications.
|
| |
| virtual void | change_notification (const Oidx &, mib_change) |
| | Receive a notification about changes to a managed object.
|
| |
| OidxPtr | key () |
| | Return a pointer to the key (object identifier) of the receiver.
|
| |
| virtual mib_access | get_access () |
| | Return the maximum access rights for the managed object represented by the receiver node.
|
| |
| virtual bool | is_volatile () |
| | Check whether the entry is volatile or not.
|
| |
| virtual void | reset () |
| | Resets (clears) the content of this entry.
|
| |
| int | operator< (const MibEntry &) const |
| |
| int | operator> (const MibEntry &) const |
| |
| int | operator== (const MibEntry &) const |
| |
| int | operator< (const Oidx &) const |
| |
| int | operator> (const Oidx &) const |
| |
| int | operator<= (const Oidx &) const |
| |
| int | operator>= (const Oidx &) const |
| |
| int | operator== (const Oidx &) const |
| |
| | ThreadManager () |
| | Default constructor.
|
| |
| virtual | ~ThreadManager () |
| | Destructor.
|
| |
| void | start_synch () |
| | Start synchronized execution.
|
| |
| void | end_synch () |
| | End synchronized execution.
|
| |
| | Synchronized () |
| |
| | ~Synchronized () |
| |
| void | wait () |
| | Causes current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object.
|
| |
| bool | wait (unsigned long timeout) |
| | Causes current thread to wait until either another thread invokes the notify() method or the notifyAll() method for this object, or a specified amount of time has elapsed.
|
| |
| void | notify () |
| | Wakes up a single thread that is waiting on this object's monitor.
|
| |
| void | notify_all () |
| | Wakes up all threads that are waiting on this object's monitor.
|
| |
| bool | lock () |
| | Enter a critical section.
|
| |
| TryLockResult | trylock () |
| | Try to enter a critical section.
|
| |
| bool | unlock () |
| | Leave a critical section.
|
| |
The MibProxy class represents a sub-tree within an agents MIB whose nodes and their values are proxied (forwarded) from another SNMPv1/v2c agent.
The following figure displays a possible scenario:
+--------------+ +----------+ +-----------+
| Manager | | AGENT++ | | Any v1 or |
| |--------| MibProxy |-------| v2c agent |
| v1/v2c or v3 | | | | |
+--------------+ +----------+ +-----------+
SNMP v3 support for MibProxy can be easily added by sub-classing.
- Author
- Frank Fock
- Version
- 3.02