Works a bit more
authorToni Nikkanen <toni@tuug.fi>
Sat, 7 Mar 2009 18:20:45 +0000 (20:20 +0200)
committerToni Nikkanen <toni@tuug.fi>
Sat, 7 Mar 2009 18:20:45 +0000 (20:20 +0200)
Cl/WWWLibrary/HTTCP.c
Cl/WWWLibrary/HTUtils.h
Ui/UiMisc.c

index 40a43e8..448c888 100644 (file)
@@ -221,15 +221,12 @@ PUBLIC int HTParseInet(sin, str)
        sin->sin_addr.s_addr = inet_addr(host); /* See arpa/inet.h */
 
     } else {               /* Alphanumeric node name: */
-#ifdef MVS     /* Oustanding problem with crsh in MVS gethostbyname */
-       if(TRACE)printf("HTTCP: Calling gethostbyname(%s)\n", host);
-#endif
-       phost=gethostbyname(host);      /* See netdb.h */
-#ifdef MVS
-       if(TRACE)printf("HTTCP: gethostbyname() returned %d\n", phost);
-#endif
+       printf("HTTCP: Calling gethostbyname2(\"%s\",AF_INET)\n", host);
+       phost=gethostbyname2(host,AF_INET);     /* See netdb.h */
+       printf("HTTCP: gethostbyname() returned %d\n", phost);
+       printf("HTTCP: h_errno %d\n",h_errno);
        if (!phost) {
-           if (TRACE) printf(
+           printf(
                    "HTTPAccess: Can't find internet node name `%s'.\n",host);
            return -1;  /* Fail? */
        }
@@ -278,7 +275,7 @@ PRIVATE void get_host_details()
 #ifdef NEED_HOST_ADDRESS               /* no -- needs name server! */
     phost=gethostbyname(name);         /* See netdb.h */
     if (!phost) {
-       if (TRACE) printf(
+       printf(
                "TCP: Can't find my own internet node address for `%s'!!\n",
                name);
        return;  /* Fail! */
index fb558f8..7d92c1d 100644 (file)
@@ -140,7 +140,7 @@ typedef char        BOOLEAN;                /* Logical value */
 #define NO (BOOLEAN)0
 #endif
 
-#define TCP_PORT 2784          /* 80 Allocated by Jon Postel/ISI 24-Jan-92 */
+#define TCP_PORT 80            /* 80 Allocated by Jon Postel/ISI 24-Jan-92 */
 
 /*     Is character c white space? */
 
index 2885492..47b388b 100644 (file)
@@ -509,7 +509,7 @@ String resource;
     Arg args[1];
 
     XtSetArg(args[0], resource, (XtArgVal) 0);
-    XtGetValues(wdg, args, 1);
+/*    XtGetValues(wdg, args, 1); Toni */
 
     return args[0].value;
 }