core-lightning/daemon/dns.h
Rusty Russell 39120b3ac6 daemon: async DNS lookups.
Also based on pettycoin code.

(With embarrassing bug fixed where it didn't increment the address used,
 thus using 100% CPU if that connect failed!)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-01-22 06:41:48 +10:30

17 lines
450 B
C

#ifndef PETTYCOIN_DNS_H
#define PETTYCOIN_DNS_H
#include "config.h"
#include <ccan/io/io.h>
#include <ccan/tal/tal.h>
#include <stdbool.h>
struct lightningd_state;
struct netaddr;
struct dns_async *dns_resolve_and_connect(struct lightningd_state *state,
const char *name, const char *port,
struct io_plan *(*init)(struct io_conn *,
struct lightningd_state *,
const char *name, const char *port));
#endif /* PETTYCOIN_DNS_H */