diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-16 07:29:55 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-16 07:29:55 +0200 |
commit | 872e0dfa86417e89022f84ac78b2d90236cb97d4 (patch) | |
tree | 640c04570466a9cf2d06eece32fdb5c07afde6cb /src/fastd.h | |
parent | 3a87d747a015b2ff2150ed163ad56b1bc677e6b0 (diff) | |
download | fastd-872e0dfa86417e89022f84ac78b2d90236cb97d4.tar fastd-872e0dfa86417e89022f84ac78b2d90236cb97d4.zip |
Lots of fixes and improvements on the resolver code
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fastd.h b/src/fastd.h index c778b19..1fa4d17 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -103,8 +103,7 @@ struct _fastd_resolve_return { fastd_context *ctx; char *hostname; - sa_family_t af; - uint16_t port; + fastd_peer_address constraints; fastd_peer_address addr; }; @@ -139,6 +138,9 @@ struct _fastd_config { unsigned n_floating; unsigned n_v4; unsigned n_v6; + unsigned n_dynamic; + unsigned n_dynamic_v4; + unsigned n_dynamic_v6; fastd_protocol_config *protocol_config; @@ -188,7 +190,7 @@ void fastd_send(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void fastd_send_handshake(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); void fastd_handle_receive(fastd_context *ctx, fastd_peer *peer, fastd_buffer buffer); -void fastd_resolve_peer_handshake(fastd_context *ctx, fastd_peer *peer); +void fastd_resolve_peer(fastd_context *ctx, const fastd_peer_config *peer); void fastd_printf(const fastd_context *ctx, const char *format, ...); |