summaryrefslogtreecommitdiff
path: root/Userland/Services/LookupServer/DNSServer.h
blob: 54e1fe9f8f911a9c86877ab193f3c638e575067a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (c) 2021, Sergey Bugaev <bugaevc@serenityos.org>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibCore/UDPServer.h>

namespace LookupServer {

class DNSServer : public Core::UDPServer {
    C_OBJECT(DNSServer)

private:
    explicit DNSServer(Object* parent = nullptr);

    ErrorOr<void> handle_client();
};

}