gloox  1.1-svn
asyncdnshandler.h
1 /*
2  Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
3  This file is part of the gloox library. http://camaya.net/gloox
4 
5  This software is distributed under a license. The full license
6  agreement can be found in the file LICENSE in this distribution.
7  This software may not be copied, modified, sold or distributed
8  other than expressed in the named license agreement.
9 
10  This software is distributed without any warranty.
11 */
12 
13 #ifndef ASYNCDNSHANDLER_H__
14 #define ASYNCDNSHANDLER_H__
15 
16 #include "dns.h"
17 
18 namespace gloox
19 {
20 
27  class GLOOX_API AsyncDNSHandler
28  {
29  public:
36  virtual void handleAsyncResolveResult( const DNS::HostMap& hosts, void* context ) = 0;
37 
43  virtual void handleAsyncConnectResult( int fd, void* context ) = 0;
44 
45  };
46 
47 }
48 
49 #endif // ASYNCDNSHANDLER_H__