diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-16 10:09:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-16 10:09:47 +0000 |
commit | 007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3 (patch) | |
tree | b42d56110ae349eb2977673690c072dcf75b32a4 /src/transport/plugin_transport_tcp.c | |
parent | 94c41ff98d293d8c041c4bbbe8d19dbf8ccd6f3f (diff) | |
download | gnunet-007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3.tar.gz gnunet-007b8443b0cb0d67bf8b176a1a175ad4bc37f1f3.zip |
resolver API change
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 11b7bc3f1..42eaeb9b2 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1670,7 +1670,6 @@ tcp_plugin_address_pretty_printer (void *cls, | |||
1670 | GNUNET_TRANSPORT_AddressStringCallback asc, | 1670 | GNUNET_TRANSPORT_AddressStringCallback asc, |
1671 | void *asc_cls) | 1671 | void *asc_cls) |
1672 | { | 1672 | { |
1673 | struct Plugin *plugin = cls; | ||
1674 | struct PrettyPrinterContext *ppc; | 1673 | struct PrettyPrinterContext *ppc; |
1675 | const void *sb; | 1674 | const void *sb; |
1676 | size_t sbs; | 1675 | size_t sbs; |
@@ -1715,8 +1714,7 @@ tcp_plugin_address_pretty_printer (void *cls, | |||
1715 | ppc->asc = asc; | 1714 | ppc->asc = asc; |
1716 | ppc->asc_cls = asc_cls; | 1715 | ppc->asc_cls = asc_cls; |
1717 | ppc->port = port; | 1716 | ppc->port = port; |
1718 | GNUNET_RESOLVER_hostname_get (plugin->env->cfg, | 1717 | GNUNET_RESOLVER_hostname_get (sb, |
1719 | sb, | ||
1720 | sbs, | 1718 | sbs, |
1721 | !numeric, timeout, &append_port, ppc); | 1719 | !numeric, timeout, &append_port, ppc); |
1722 | } | 1720 | } |
@@ -3167,16 +3165,14 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
3167 | _("TCP transport advertises itself as being on port %llu\n"), | 3165 | _("TCP transport advertises itself as being on port %llu\n"), |
3168 | aport); | 3166 | aport); |
3169 | 3167 | ||
3170 | plugin->hostname_dns = GNUNET_RESOLVER_hostname_resolve (env->cfg, | 3168 | plugin->hostname_dns = GNUNET_RESOLVER_hostname_resolve (AF_UNSPEC, |
3171 | AF_UNSPEC, | ||
3172 | HOSTNAME_RESOLVE_TIMEOUT, | 3169 | HOSTNAME_RESOLVE_TIMEOUT, |
3173 | &process_hostname_ips, | 3170 | &process_hostname_ips, |
3174 | plugin); | 3171 | plugin); |
3175 | 3172 | ||
3176 | if (plugin->external_address != NULL) | 3173 | if (plugin->external_address != NULL) |
3177 | { | 3174 | { |
3178 | plugin->ext_dns = GNUNET_RESOLVER_ip_get (env->cfg, | 3175 | plugin->ext_dns = GNUNET_RESOLVER_ip_get (plugin->external_address, |
3179 | plugin->external_address, | ||
3180 | AF_INET, | 3176 | AF_INET, |
3181 | GNUNET_TIME_UNIT_MINUTES, | 3177 | GNUNET_TIME_UNIT_MINUTES, |
3182 | &process_external_ip, | 3178 | &process_external_ip, |