diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1999-02-08 10:50:02 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1999-02-08 10:50:02 -0500 |
commit | 8ce6b560f4fb325be3d34266c54c70eb8668e8e1 (patch) | |
tree | d227c501d100ee0c5f1c72601d9ea5a487c1e2ca /WWW/Library/Implementation/HTTCP.h | |
parent | 87434eaa074d789f65bac589b03df341e76e7a4e (diff) | |
download | lynx-snapshots-8ce6b560f4fb325be3d34266c54c70eb8668e8e1.tar.gz |
snapshot of project "lynx", label v2-8-2dev_16
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.h')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/WWW/Library/Implementation/HTTCP.h b/WWW/Library/Implementation/HTTCP.h index 63fe03aa..0c7e8e61 100644 --- a/WWW/Library/Implementation/HTTCP.h +++ b/WWW/Library/Implementation/HTTCP.h @@ -69,8 +69,34 @@ extern unsigned int HTCardinal PARAMS((int *pstatus, char **pp, unsigned int max_value)); +/* Check whether string is a valid Internet hostname +** ------------------------------------------------- +*/ + extern BOOL valid_hostname PARAMS((CONST char * name)); +/* Resolve an internet hostname, like gethostbyname +** ------------------------------------------------ +** +** On entry, +** str points to the given host name, not numeric address, +** without colon or port number. +** +** On exit, +** returns a pointer to a struct hostent in static storage, +** or NULL in case of error or user interruption. +** +** The interface is intended to be the same as for gethostbyname(), +** but additional status is returned in lynx_nsl_status. +*/ +extern int lynx_nsl_status; + +#ifndef DJGPP +extern struct hostent * LYGetHostByName PARAMS(( + CONST char * str)); +#endif /* DJGPP */ + + /* Parse an internet node address and port ** --------------------------------------- ** |