Commit Graph
2 Commits
Author SHA1 Message Date
adamnemecek 0bbed6d72f * removed trailing whitespace (#52) 2018-03-02 15:40:52 +09:00
Norman Maurer 68f20f84fd Make the Resolver pluggable.
Motivation:

We should allow to use a custom Resolver for the ClientBootstrap as users may want to use different strategies then using a DNS based approach.

Beside this GetaddrinfoResolver should not keep any state and should be more rebust as at the moment it only will ever complee the future for the A query if also an AAAA query was sent.

Modifications:

- Make Resolver protocol public
- Remove state in GetaddrinfoResolver and so allow to use it multiple times. Now it is also more conform to the protocol itself.

Result:

Allow to use custom Resolver
2018-02-15 14:50:51 +01:00