<HTML>
<HEAD>
<TITLE>NNTP Access</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen, 12-Nov-1995 -->
</HEAD>
<BODY>
<H1>News Access</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
This is the NEWS load module that handles all communication with
NEWS-servers. <P>
This module is implemented by <A HREF="HTNews.c">HTNews.c</A>, and it
is a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">W3C
Reference Library</A>.
<PRE>
#ifndef HTNEWS_H
#define HTNEWS_H
#include "HTEvntrg.h"
</PRE>
We define the max NNTP line as rather long as the result coming from a
<CODE>XOVER</CODE> command needs it. If the line is longer then it is
chopped, but we will almost have received the information we're
looking for.
<PRE>
#define MAX_NEWS_LINE 512
extern HTEventCallback HTLoadNews;
</PRE>
<H2>Setting Number of Articles to Show</H2>
You can set the number of news articles to be shown at a time. If you
set the number to none (<CODE>0</CODE>) then <EM>all</EM> articles are
shown at once. This is also the default behavior.
<PRE>
extern BOOL HTNews_setMaxArticles (int new_max);
extern int HTNews_maxArticles (void);
</PRE>
<H2>Handling the News Host</H2>
The default news host is "news" but you can get ans set the value here.
<PRE>
extern BOOL HTNews_setHost (CONST char * newshost);
extern CONST char *HTNews_host (void);
extern void HTFreeNewsHost (void);
</PRE>
<PRE>
#endif /* HTNEWS_H */
</PRE>
End of News declaration
</BODY>
</HTML>
Webmaster