Trippin Cyril
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
trippingcyril::net::dns::DNSReverseCallback Class Referenceabstract

Reverse dns callback. More...

#include <DNS.h>

Inheritance diagram for trippingcyril::net::dns::DNSReverseCallback:
[legend]
Collaboration diagram for trippingcyril::net::dns::DNSReverseCallback:
[legend]

Public Member Functions

virtual ~DNSReverseCallback ()
 
virtual void QueryResult (const IPAddress &ip, const String &result, int ttl)=0
 
virtual void Error (const IPAddress &ip, int errorCode, const String &error)
 
- Public Member Functions inherited from trippingcyril::ShouldDelete
virtual bool shouldDelete () const
 

Detailed Description

Reverse dns callback.

Constructor & Destructor Documentation

virtual trippingcyril::net::dns::DNSReverseCallback::~DNSReverseCallback ( )
inlinevirtual

Member Function Documentation

virtual void trippingcyril::net::dns::DNSReverseCallback::Error ( const IPAddress ip,
int  errorCode,
const String error 
)
inlinevirtual

There was an error while looking up this domain name

Parameters
ipThe query address
errorCodeThe internal libevent error code
errorA human readable error
virtual void trippingcyril::net::dns::DNSReverseCallback::QueryResult ( const IPAddress ip,
const String result,
int  ttl 
)
pure virtual

This will get called on succesful dns lookups

Parameters
ipThe query address
resultThe found hostname
ttlThe time to live of the result
Exceptions
std::runtime_errorIf libevent somehow failed to make the request

The documentation for this class was generated from the following file: