mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
39120b3ac6
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>
17 lines
450 B
C
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 */
|