Reverse dns callback.
More...
#include <DNS.h>
| virtual trippingcyril::net::dns::DNSReverseCallback::~DNSReverseCallback |
( |
| ) |
|
|
inlinevirtual |
| 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
-
| ip | The query address |
| errorCode | The internal libevent error code |
| error | A 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
-
| ip | The query address |
| result | The found hostname |
| ttl | The time to live of the result |
- Exceptions
-
| std::runtime_error | If libevent somehow failed to make the request |
The documentation for this class was generated from the following file: