aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/coroutine/dns/coro.h
blob: 62a01891b8a3f2617e0d64f88209a6f13745eedb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "iface.h"

#include <util/generic/ptr.h>
#include <util/generic/ylimits.h>

class TContExecutor;

namespace NAsyncDns {
    class TContResolver {
    public:
        TContResolver(TContExecutor* e, const TOptions& opts = TOptions());
        ~TContResolver();

        void Resolve(const TNameRequest& hreq);

    private:
        class TImpl;
        THolder<TImpl> I_;
    };
}