#include <triplet.h>
Public Types | |
| enum | TripletMember |
Public Member Functions | |
| Triplet (const Reader &reader) | |
| Triplet (const std::string &client, const std::string &sender, const std::string &recipient, const std::string &client_numeric="") | |
| const std::string & | getClientAddress () const |
| const std::string & | getClientAddressNumeric () const |
| TODO use inet_aton instead. | |
| const std::string | getClientAddressNumericStr (const char sep='.', unsigned size=0) const |
| utility function for messsages etc. | |
| const std::string | getClientAddressNumericStrSQL (const std::string &sep, const std::string &base, unsigned start, const std::string &afterstart, unsigned mult, unsigned size) const |
| convenience function for SQL update, replace | |
| const std::string | getResolved () const |
| const std::string & | getResolveError () const |
| const std::string & | getSender () const |
| const std::string & | getRecipient () const |
| const std::string & | getQuotedWeakClient () const |
| quoted weak client ip address, trimmed last byte e.g. '10.0.0.' | |
| const std::string & | getMember (TripletMember m) const throw (std::out_of_range) |
Definition at line 46 of file triplet.h.
| const std::string Triplet::getResolved | ( | ) | const [inline] |
return resolved host name or empty string if error set _not_resolved to the error message if it couldn't be resolved
Definition at line 103 of file triplet.h.
Referenced by PatternMatcher::match().
1.5.1