BitcoinPrivate-seeder/dns.h

21 lines
333 B
C
Raw Normal View History

2011-12-26 09:27:02 -08:00
#ifndef _DNS_H_
#define _DNS_H_ 1
#include <stdint.h>
typedef struct {
int port;
int datattl;
int nsttl;
const char *host;
const char *ns;
const char *mbox;
2012-05-03 16:15:49 -07:00
int (*cb)(void *opt, struct in_addr *addr, int max, int ipv4only);
2011-12-26 09:27:02 -08:00
// stats
uint64_t nRequests;
} dns_opt_t;
extern int dnsserver(dns_opt_t *opt);
#endif