mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
peer: keep addresses separately from peers.
This makes more sense eventually: we may know the network addresses of many peers, not just those we're connecting to. So keep a mapping, and update it when we successfully connect outwards. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -26,6 +26,8 @@ char *netaddr_name(const tal_t *ctx, const struct netaddr *a);
|
||||
/* Create a addrinfo (as wanted by io_connect) for this address. */
|
||||
void netaddr_to_addrinfo(struct addrinfo *ai, const struct netaddr *a);
|
||||
|
||||
bool netaddr_from_fd(int fd, int type, int protocol, struct netaddr *a);
|
||||
|
||||
bool netaddr_from_blob(const void *linear, size_t len, struct netaddr *a);
|
||||
char *netaddr_to_hex(const tal_t *ctx, const struct netaddr *a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user