summaryrefslogtreecommitdiff
path: root/bouncer/dns.h
blob: 78ec75f5ab12ca535ba28c98477c4eacb897d9b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef DNS_H
#define DNS_H 

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

namespace DNS {
	void start();
	int makeQuery(const char *name);
	void closeQuery(int id);
	bool checkQuery(int id, in_addr *pResult, bool *pIsError);
}

#endif /* DNS_H */