* @note -- A solution might be opening a separate socket and
* trying to obtain the IP address from it.
*/
- ret = kr_resolve_query_finalize(&task->req, NULL, addr,
- handle->type == UV_UDP ? SOCK_DGRAM : SOCK_STREAM,
- pkt);
+ ret = kr_resolve_checkout(&task->req, NULL, addr,
+ handle->type == UV_UDP ? SOCK_DGRAM : SOCK_STREAM,
+ pkt);
if (ret != kr_ok()) {
return ret;
}
/*
* Additional query is going to be finalised when calling
- * kr_resolve_query_finalize().
+ * kr_resolve_checkout().
*/
gettimeofday(&qry->timestamp, NULL);
}
#endif /* defined(ENABLE_COOKIES) */
-int kr_resolve_query_finalize(struct kr_request *request, struct sockaddr *src,
- struct sockaddr *dst, int type, knot_pkt_t *packet)
+int kr_resolve_checkout(struct kr_request *request, struct sockaddr *src,
+ struct sockaddr *dst, int type, knot_pkt_t *packet)
{
/* @todo: Update documentation if this function becomes approved. */
int kr_resolve_produce(struct kr_request *request, struct sockaddr **dst, int *type, knot_pkt_t *packet);
/**
- * Finalises the query with the knowledge of the target (remote server) IP address.
+ * Finalises the outbound query packet with the knowledge of the IP addresses.
*
* @note The function must be called before actual sending of the request packet.
*
* @return kr_ok() or error code
*/
KR_EXPORT
-int kr_resolve_query_finalize(struct kr_request *request, struct sockaddr *src,
- struct sockaddr *dst, int type, knot_pkt_t *packet);
+int kr_resolve_checkout(struct kr_request *request, struct sockaddr *src,
+ struct sockaddr *dst, int type, knot_pkt_t *packet);
/**
* Finish resolution and commit results if the state is DONE.