Kea
1.9.9-git
|
A helper structure to represent the search result of TSIGKeyRing::find()
.
More...
#include <tsigkey.h>
Public Member Functions | |
FindResult (Result param_code, const TSIGKey *param_key) | |
Public Attributes | |
const Result | code |
const TSIGKey *const | key |
A helper structure to represent the search result of TSIGKeyRing::find()
.
This is a straightforward pair of the result code and a pointer to the found key to represent the result of find()
. We use this in order to avoid overloading the return value for both the result code ("success" or "not found") and the found object, i.e., avoid using NULL
to mean "not found", etc.
This is a simple value class with no internal state, so for convenience we allow the applications to refer to the members directly.
See the description of find()
for the semantics of the member variables.
const TSIGKey* const isc::dns::TSIGKeyRing::FindResult::key |