about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTTCP.h
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2000-08-03 18:00:32 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2000-08-03 18:00:32 -0400
commit0726d2fa354eae3a7913d3ea28f19115ca904e02 (patch)
tree804a08df540b512940cf9681b299ac1c0f5a1e4b /WWW/Library/Implementation/HTTCP.h
parent56683faadde77d4d27712644e54769a77ac705bb (diff)
downloadlynx-snapshots-0726d2fa354eae3a7913d3ea28f19115ca904e02.tar.gz
snapshot of project "lynx", label v2-8-4dev_7
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.h')
-rw-r--r--WWW/Library/Implementation/HTTCP.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/WWW/Library/Implementation/HTTCP.h b/WWW/Library/Implementation/HTTCP.h
index 56a0ee31..345f6077 100644
--- a/WWW/Library/Implementation/HTTCP.h
+++ b/WWW/Library/Implementation/HTTCP.h
@@ -18,8 +18,11 @@
 **           returns a pointer to a static string which must be copied if
 **                it is to be kept.
 */
+#ifdef INET6
+extern CONST char * HTInetString PARAMS((SockA* mysin));
+#else
 extern CONST char * HTInetString PARAMS((struct sockaddr_in* mysin));
-
+#endif /* INET6 */
 
 /*      Encode INET status (as in sys/errno.h)                    inet_status()
 **      ------------------
@@ -100,11 +103,19 @@ extern struct hostent * LYGetHostByName PARAMS((char * str));
 **               sin points to the binary internet or decnet address field.
 **
 ** On exit:
+**         Regular case:
 **               *sin is filled in.  If no port is specified in str, that
 **               field is left unchanged in *sin.
+**         INET6 case:
+**               *sin is filled in.  If no port is specified in str,
+**               default_port is used
 */
 #if defined(__STDC__) || defined(__BORLANDC__) || defined(_MSC_VER)
+#ifdef INET6
+        extern int HTParseInet(SockA * mysin, CONST char * str, int default_port);
+#else
         extern int HTParseInet(struct sockaddr_in * mysin, CONST char * str);
+#endif /* INET6 */
         /*!! had to change this to get it to compile. CTB */
 #else
         extern int HTParseInet();