Giter VIP home page Giter VIP logo

asio-c-ares's Introduction

ASIO C-ARES

Build Status Build status

What is ASIO C-ARES

ASIO C-ARES is a C++14 library which allows the use of libcares with Boost.Asio. No need to manage select just use the provided composed asynchronous operations and run a boost::asio::io_service.

How does it work?

  1. Create an asio_cares::library object (an RAII wrapper for libcares global initialization/cleanup)
  2. Create an asio_cares::channel object
  3. Dispatch one or more questions on the channel using async_send
  4. Call async_process or call async_process_one until done returns true

Functions

  • done

Types

  • channel
  • library
  • string

Operations

  • async_process
  • async_process_one
  • async_send
  • cancel

Dependencies

  • Boost 1.58.0+
  • libcares 1.13.0+

Other libraries are depended on, but are header only and are downloaded by CMake:

  • Beast
  • Catch
  • MPark Variant

Requirements

  • Clang 4+ or GCC 6.2.0+ or Microsoft Visual C++ 2017+ (may work with earlier compilers, these are the oldest used for CI)
  • CMake 3.5+

Example

See unit tests.

asio-c-ares's People

Contributors

robertleahy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.