Fawkes API
Fawkes Development Version
|
Avahi resolver handler interface. More...
#include <>>
Public Member Functions | |
virtual | ~AvahiResolverHandler () |
Virtual empty destructor. More... | |
virtual void | resolved_name (char *name, struct sockaddr *addr, socklen_t addrlen)=0 |
Name has been successfully resolved. More... | |
virtual void | resolved_address (struct sockaddr *addr, socklen_t addrlen, char *name)=0 |
Address has been successfully resolved. More... | |
virtual void | name_resolution_failed (char *name)=0 |
Name resolution failed. More... | |
virtual void | address_resolution_failed (struct sockaddr *addr, socklen_t addrlen)=0 |
Address resolution failed. More... | |
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.
Definition at line 31 of file avahi_resolver_handler.h.
|
virtual |
Virtual empty destructor.
Definition at line 78 of file avahi_resolver_handler.cpp.
|
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.
addr | address whose lookup failed |
addrlen | length of address |
|
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.
name | name whose lookup failed |
|
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.
name | the resulting hostname |
addr | addr record |
addrlen | length of addr in bytes |
|
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.
name | name that was resolved |
addr | resulting addr record |
addrlen | length of addr in bytes |