|
Public Member Functions |
| | Cache () |
| | ~Cache () |
| int | add_entry (int msg_id, unsigned long req_id, const OctetStr &sec_engine_id, int sec_model, const OctetStr &sec_name, int sec_level, const OctetStr &context_engine_id, const OctetStr &context_name, struct SecurityStateReference *sec_state_ref, int error_code, bool local_request) |
| | Add an entry to the cache.
|
| int | get_entry (int msg_id, bool local_request, int *error_code, struct SecurityStateReference **sec_state_ref) |
| | Search the cache for a message id, return the error code and the sec_state_ref and delete the entry from the cache.
|
| void | delete_entry (unsigned long req_id, bool local_request) |
| | Delete the entry with the given request id from the cache.
|
| int | get_entry (int searchedID, bool local_request, struct Cache::Entry_T *res) |
| | Search the cache for a message id, return the whole entry and delete the entry from the cache.
|
| void | delete_content (struct Cache::Entry_T &ce) |
| void | set_usm (USM *usm_to_use) |
Private Attributes |
| SnmpSynchronized | _cachesync |
| Entry_T * | table |
| | whole table
|
| int | max_entries |
| | the maximum number of entries
|
| int | entries |
| | the current amount of entries
|
| USM * | usm |