Commit c7cc186c authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Restructure the DNS lookup API in preparation of ADNS integration.

The API is now callback-based.  The current implementation still uses
gethostbyname, though.
parent b689fd19
2003-08-05 Per Cederqvist <ceder@ceder.dyndns.org>
Restructure the DNS lookup API in preparation of ADNS
integration. The API is now callback-based. The current
implementation still uses gethostbyname, though.
* src/isc.h (enum isc_resolve_status): New enum.
(isc_resolve_done_cb): New callback.
(struct isc_scb): Added the field "remote".
(isc_gethostname): Removed.
(isc_resolve_remotem): New function.
* src/intern.h (struct isc_scb_internal): Added resolve_callback.
(isc_dns_resolve_cb): New function.
* src/isc_socket.c (isc_dns_resolve_cb): New function.
(isc_resolve_remote): New function.
(isc_gethostname): Removed.
* src/isc_session.c (isc_create): Initialize resolve_callback and
remote.
(isc_destroy): Cancel any pending dns query, and clear remote.
2003-08-04 Per Cederqvist <ceder@ceder.dyndns.org>
Simplified the API of the callback functions. Pass a pointer to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment