https://github.com/kezhengjie/async_dns_resolver
async_dns_resolver is c++ cross-platform async dns resolve library which provides simple API and designs for high performace and high concurrency scene.Also runtime and thread safe.
https://github.com/kezhengjie/async_dns_resolver
async async-dns c-ares cpp cross-platform dns dns-resolver high-concurrency high-performance simple
Last synced: about 2 months ago
JSON representation
async_dns_resolver is c++ cross-platform async dns resolve library which provides simple API and designs for high performace and high concurrency scene.Also runtime and thread safe.
- Host: GitHub
- URL: https://github.com/kezhengjie/async_dns_resolver
- Owner: kezhengjie
- License: mit
- Created: 2022-09-13T05:35:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T02:04:40.000Z (over 2 years ago)
- Last Synced: 2025-03-26T02:42:30.235Z (2 months ago)
- Topics: async, async-dns, c-ares, cpp, cross-platform, dns, dns-resolver, high-concurrency, high-performance, simple
- Language: C++
- Homepage:
- Size: 368 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# async_dns_resolver
async_dns_resolver is c++ cross-platform async dns resolve library which provides simple API and designs for
high performace and high concurrency scene.Also runtime and thread safe.## Quick Start
```c++
#include
#include "dns_resolve/dns_resolve.h"int main(int argc,char**argv)
{
dnsresolve::Resolver resolver;
resolver.AsyncResolve("www.google.com", [&](const dnsresolve::Result& result) -> void {
if (result.HasError()) {
std::cout <