summaryrefslogtreecommitdiffstats
path: root/daemon/udp_queue.h
blob: 43fd56f1b736295c3d069ce126db8cbe89ec4ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*  Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
 *  SPDX-License-Identifier: GPL-3.0-or-later
 */

#pragma once

#include <uv.h>
struct kr_request;
struct qr_task;

/** Initialize the global state for udp_queue. */
int udp_queue_init_global(uv_loop_t *loop);

/** Send req->answer via UDP, possibly not immediately. */
void udp_queue_push(int fd, struct kr_request *req, struct qr_task *task);