Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

poslib/server/srvresolver.h

Go to the documentation of this file.

  
00001 /* 00002 Posadis - A DNS Server 00003 Dns Resolver API 00004 Copyright (C) 2002 Meilof Veeningen <> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef __POSLIB_SERVER_SRVRESOLVER_H 00022 #define __POSLIB_SERVER_SRVRESOLVER_H 00023 00024 #include 00025 #include <poslib/socket.h> 00026 #include <poslib/dnsmessage.h> 00027 #include <poslib/resolver.h> 00028 00052 class pos_srvresolver : public pos_resolver { 00053 public: 00054 void query(DnsMessage *q, DnsMessage*& a, _addr *server, int flags = Q_DFL); 00055 void query(DnsMessage *q, DnsMessage*& a, stl_slist(_addr) &servers, int flags = Q_DFL); 00064 void sendmessage(DnsMessage *msg, _addr *res, int sockid = -1); 00081 bool waitanswer(DnsMessage*& ans, stl_slist(WaitAnswerData)& wait, int timeout, stl_slist(WaitAnswerData)::iterator& it, int sockid = -1); 00082 }; 00083 00084 00085 #endif /* __POSLIB_SERVER_SRVRESOLVER_H */

  
Generated on Fri Dec 24 19:55:14 2004 for Poslib by doxygen 1.3.7