[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r3197 - in GNUnet/src: applications/bootstrap_http applicat
From: |
grothoff |
Subject: |
[GNUnet-SVN] r3197 - in GNUnet/src: applications/bootstrap_http applications/testbed transports |
Date: |
Sun, 30 Jul 2006 20:58:27 -0700 (PDT) |
Author: grothoff
Date: 2006-07-30 20:58:25 -0700 (Sun, 30 Jul 2006)
New Revision: 3197
Modified:
GNUnet/src/applications/bootstrap_http/http.c
GNUnet/src/applications/testbed/commands.c
GNUnet/src/applications/testbed/testbed.c
GNUnet/src/transports/http.c
GNUnet/src/transports/smtp.c
Log:
GN_getHostByName -> get_host_by_name
Modified: GNUnet/src/applications/bootstrap_http/http.c
===================================================================
--- GNUnet/src/applications/bootstrap_http/http.c 2006-07-31 03:56:48 UTC
(rev 3196)
+++ GNUnet/src/applications/bootstrap_http/http.c 2006-07-31 03:58:25 UTC
(rev 3197)
@@ -129,7 +129,7 @@
/* Do we need to connect through a proxy? */
if (theProxy.sin_addr.s_addr == 0) {
- if (OK != GN_getHostByName(hostname, &ip_info)) {
+ if (OK != get_host_by_name(ectx, hostname, &ip_info)) {
GE_LOG(ectx, GE_WARNING | GE_BULK | GE_USER,
_("Could not download list of peer contacts, host `%s' unknown.\n"),
hostname);
@@ -190,7 +190,7 @@
return;
}
FREE(command);
- cronTime(&start);
+ start = get_time();
/* we first have to read out the http_response*/
/* it ends with four line delimiters: "\r\n\r\n" */
@@ -327,7 +327,8 @@
proxy = getConfigurationString("GNUNETD",
"HTTP-PROXY");
if (proxy != NULL) {
- if (OK != GN_getHostByName(proxy,
+ if (OK != get_host_by_name(ectx,
+ proxy,
&ip)) {
GE_LOG(ectx, GE_ERROR | GE_BULK | GE_USER,
_("Could not resolve name of HTTP proxy `%s'. Trying without a
proxy.\n"),
Modified: GNUnet/src/applications/testbed/commands.c
===================================================================
--- GNUnet/src/applications/testbed/commands.c 2006-07-31 03:56:48 UTC (rev
3196)
+++ GNUnet/src/applications/testbed/commands.c 2006-07-31 03:58:25 UTC (rev
3197)
@@ -1480,7 +1480,7 @@
proxy = getConfigurationString("GNUNETD",
"HTTP-PROXY");
if (proxy != NULL) {
- if (OK != GN_getHostByName(proxy,
+ if (OK != get_host_by_name(ectx, proxy,
&ip)) {
XPRINTF(" Couldn't resolve name of HTTP proxy '%s'\n",
proxy);
@@ -1578,7 +1578,7 @@
/* Do we need to connect through a proxy? */
if (theProxy.sin_addr.s_addr == 0) {
/* no proxy */
- if (OK != GN_getHostByName(hostname,
+ if (OK != get_host_by_name(ectx, hostname,
&ip)) {
XPRINTF(" could not download hostlist, host '%s' unknown\n",
hostname);
Modified: GNUnet/src/applications/testbed/testbed.c
===================================================================
--- GNUnet/src/applications/testbed/testbed.c 2006-07-31 03:56:48 UTC (rev
3196)
+++ GNUnet/src/applications/testbed/testbed.c 2006-07-31 03:58:25 UTC (rev
3197)
@@ -1049,7 +1049,7 @@
proxy = getConfigurationString("GNUNETD",
"HTTP-PROXY");
if (proxy != NULL) {
- if (OK != GN_getHostByName(proxy, &ip_info)) {
+ if (OK != get_host_by_name(ectx, proxy, &ip_info)) {
GE_LOG(ectx, GE_ERROR | GE_BULK | GE_USER,
_("Could not resolve name of HTTP proxy `%s'.\n"),
proxy);
@@ -1148,7 +1148,7 @@
/* Do we need to connect through a proxy? */
if (theProxy.sin_addr.s_addr == 0) {
/* no proxy */
- if (OK != GN_getHostByName(hostname,
+ if (OK != get_host_by_name(ectx, hostname,
&ip_info)) {
GE_LOG(ectx, GE_WARNING | GE_BULK | GE_USER,
_("Could not register testbed, host `%s' unknown\n"),
Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c 2006-07-31 03:56:48 UTC (rev 3196)
+++ GNUnet/src/transports/http.c 2006-07-31 03:58:25 UTC (rev 3197)
@@ -1449,7 +1449,7 @@
proxy = getConfigurationString("GNUNETD",
"HTTP-PROXY");
if (proxy != NULL) {
- if (OK != GN_getHostByName(proxy,
+ if (OK != get_host_by_name(ectx, proxy,
&ip)) {
GE_LOG(ectx, GE_ERROR | GE_BULK | GE_USER,
_("Could not resolve name of HTTP proxy `%s'.\n"),
Modified: GNUnet/src/transports/smtp.c
===================================================================
--- GNUnet/src/transports/smtp.c 2006-07-31 03:56:48 UTC (rev 3196)
+++ GNUnet/src/transports/smtp.c 2006-07-31 03:58:25 UTC (rev 3197)
@@ -291,7 +291,7 @@
if (hostname == NULL)
hostname = STRDUP("localhost");
- if (OK != GN_getHostByName(hostname,
+ if (OK != get_host_by_name(ectx, hostname,
&ip)) {
GE_LOG(ectx,
GE_ERROR,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r3197 - in GNUnet/src: applications/bootstrap_http applications/testbed transports,
grothoff <=