diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-04-27 20:26:05 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-04-27 20:26:05 -0400 |
commit | 2cd8e80bfe2792ce8999a26b34384598f58e3889 (patch) | |
tree | 780917a289058c7d05e893a8a1b3dc88d4a7030f /WWW/Library/Implementation/HTTCP.h | |
parent | bff0a2c0390cf1536254ea168d2581cc9550325f (diff) | |
download | lynx-snapshots-2cd8e80bfe2792ce8999a26b34384598f58e3889.tar.gz |
snapshot of project "lynx", label v2-8-6dev_2
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.h')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.h | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/WWW/Library/Implementation/HTTCP.h b/WWW/Library/Implementation/HTTCP.h index 363ab15d..0bc9915a 100644 --- a/WWW/Library/Implementation/HTTCP.h +++ b/WWW/Library/Implementation/HTTCP.h @@ -19,9 +19,9 @@ ** it is to be kept. */ #ifdef INET6 -extern CONST char * HTInetString PARAMS((SockA* mysin)); +extern const char * HTInetString (SockA* mysin); #else -extern CONST char * HTInetString PARAMS((struct sockaddr_in* mysin)); +extern const char * HTInetString (struct sockaddr_in* mysin); #endif /* INET6 */ /* Encode INET status (as in sys/errno.h) inet_status() @@ -34,11 +34,7 @@ extern CONST char * HTInetString PARAMS((struct sockaddr_in* mysin)); ** On return: ** returns a negative status in the unix way. */ -#if defined(__STDC__) || defined(__BORLANDC__) || defined(_MSC_VER) - extern int HTInetStatus(char *where); -#else - extern int HTInetStatus(); -#endif +extern int HTInetStatus(char *where); /* Publicly accessible variables */ @@ -61,15 +57,15 @@ extern CONST char * HTInetString PARAMS((struct sockaddr_in* mysin)); ** *pstatus points to status updated iff bad */ -extern unsigned int HTCardinal PARAMS((int *pstatus, +extern unsigned int HTCardinal (int *pstatus, char **pp, - unsigned int max_value)); + unsigned int max_value); /* Check whether string is a valid Internet hostname ** ------------------------------------------------- */ -extern BOOL valid_hostname PARAMS((char * name)); +extern BOOL valid_hostname (char * name); /* Resolve an internet hostname, like gethostbyname ** ------------------------------------------------ @@ -87,24 +83,24 @@ extern BOOL valid_hostname PARAMS((char * name)); */ extern int lynx_nsl_status; -extern struct hostent * LYGetHostByName PARAMS((char * str)); +extern struct hostent * LYGetHostByName (char * str); /* Get Name of This Machine ** ------------------------ ** */ -extern CONST char * HTHostName NOPARAMS; +extern const char * HTHostName (void); -extern int HTDoConnect PARAMS(( - CONST char * url, +extern int HTDoConnect ( + const char * url, char * protocol, int default_port, - int * s)); + int * s); -extern int HTDoRead PARAMS(( +extern int HTDoRead ( int fildes, void * buf, - unsigned nbyte)); + unsigned nbyte); #endif /* HTTCP_H */ |