#include <>>
Avahi resolver handler interface. This interface has to be implemented to make use of the threaded Avahi lookup of names and addresses. After you have ordered a lookup this handler is called with the result.
- Author
- Tim Niemueller
Definition at line 35 of file avahi_resolver_handler.h.
◆ ~AvahiResolverHandler()
fawkes::AvahiResolverHandler::~AvahiResolverHandler |
( |
| ) |
|
|
virtual |
◆ address_resolution_failed()
void fawkes::AvahiResolverHandler::address_resolution_failed |
( |
struct sockaddr * |
addr, |
|
|
socklen_t |
addrlen |
|
) |
| |
|
pure virtual |
Address resolution failed. The given address could not be resolved. Note that the parameter addr is given to the handler's ownership. This means especially that the handler is responsible for freeing the memory with free() after it is done with the variable.
- Parameters
-
addr | address whose lookup failed |
addrlen | length of address |
◆ name_resolution_failed()
void fawkes::AvahiResolverHandler::name_resolution_failed |
( |
char * |
name | ) |
|
|
pure virtual |
Name resolution failed. The given hostname could not be resolved. Note that the parameter name is given to the handler's ownership. This means especially that the handler is responsible for freeing the memory with free() after it is done with the variable.
- Parameters
-
name | name whose lookup failed |
◆ resolved_address()
void fawkes::AvahiResolverHandler::resolved_address |
( |
struct sockaddr * |
addr, |
|
|
socklen_t |
addrlen, |
|
|
char * |
name |
|
) |
| |
|
pure virtual |
Address has been successfully resolved. The ordered name lookup was successful for the given address resulting in the given name. Note that all of the parameters are given to the handler's ownership, that means especially that the handler is responsible for freeing the associated memory after it is done with the result using free() on name and addr.
- Parameters
-
name | the resulting hostname |
addr | addr record |
addrlen | length of addr in bytes |
◆ resolved_name()
void fawkes::AvahiResolverHandler::resolved_name |
( |
char * |
name, |
|
|
struct sockaddr * |
addr, |
|
|
socklen_t |
addrlen |
|
) |
| |
|
pure virtual |
Name has been successfully resolved. The ordered name lookup was successful for the given name resulting in the given addr of addrlen bytes length. Note that all of the parameters are given to the handler's ownership, that means especially that the handler is responsible for freeing the associated memory after it is done with the result using free() on name and addr.
- Parameters
-
name | name that was resolved |
addr | resulting addr record |
addrlen | length of addr in bytes |
The documentation for this class was generated from the following files: