~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to src/AsyncNameResolver.h

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2011-04-02 12:38:55 UTC
  • mfrom: (2.5.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110402123855-znkslovhf5qvkjut
Tags: 1.11.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
namespace aria2 {
49
49
 
50
50
class AsyncNameResolver {
51
 
#ifdef HAVE_LIBCARES1_5
52
 
  friend void callback(void* arg, int status, int timeouts, struct hostent* host);
53
 
#else
54
 
  friend void callback(void* arg, int status, struct hostent* host);
55
 
#endif // HAVE_LIBCARES1_5
56
 
 
 
51
  friend void callback
 
52
  (void* arg, int status, int timeouts, struct hostent* host);
57
53
public:
58
54
  enum STATUS {
59
55
    STATUS_READY,
70
66
  std::string error_;
71
67
  std::string hostname_;
72
68
public:
73
 
  AsyncNameResolver(int family);
 
69
  AsyncNameResolver
 
70
  (int family
 
71
#ifdef HAVE_ARES_ADDR_NODE
 
72
   , ares_addr_node* servers
 
73
#endif // HAVE_ARES_ADDR_NODE
 
74
   );
74
75
 
75
76
  ~AsyncNameResolver();
76
77