Implement async DNS resolution using c-ares

fix #2533
This commit is contained in:
Florent Le Coz
2015-02-23 13:56:08 +01:00
parent a17135720e
commit b86547dc1e
11 changed files with 499 additions and 13 deletions
+2
View File
@@ -1,6 +1,7 @@
#ifndef SOCKET_HANDLER_HPP
# define SOCKET_HANDLER_HPP
#include <config.h>
#include <memory>
class Poller;
@@ -19,6 +20,7 @@ public:
virtual void on_send() = 0;
virtual void connect() = 0;
virtual bool is_connected() const = 0;
socket_t get_socket() const
{ return this->socket; }