From 8ce6b560f4fb325be3d34266c54c70eb8668e8e1 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Mon, 8 Feb 1999 10:50:02 -0500 Subject: snapshot of project "lynx", label v2-8-2dev_16 --- WWW/Library/Implementation/HTTCP.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'WWW/Library/Implementation/HTTCP.h') 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 ** --------------------------------------- ** -- cgit 1.4.1-2-gfad0