Annotation of libwww/Library/src/HTNews.html, revision 2.27
2.6 timbl 1: <HTML>
2: <HEAD>
2.26 frystyk 3: <!-- Changed by: Henrik Frystyk Nielsen, 18-May-1996 -->
4: <TITLE>W3C Reference Library libwww NNTP State Machine</TITLE>
2.7 frystyk 5: </HEAD>
2.2 timbl 6: <BODY>
2.26 frystyk 7: <H1>
8: NNTP State Machine
9: </H1>
2.7 frystyk 10: <PRE>
11: /*
2.11 frystyk 12: ** (c) COPYRIGHT MIT 1995.
2.7 frystyk 13: ** Please first read the full copyright statement in the file COPYRIGH.
2.1 timbl 14: */
2.7 frystyk 15: </PRE>
2.26 frystyk 16: <P>
17: This is the News/NNTP client module that handles all communication with
18: News/NNTP-servers.
19: <P>
20: This module is implemented by <A HREF="HTNews.c">HTNews.c</A>, and it is
21: a part of the <A HREF="http://www.w3.org/pub/WWW/Library/">W3C Reference
22: Library</A>.
2.7 frystyk 23: <PRE>
2.1 timbl 24: #ifndef HTNEWS_H
25: #define HTNEWS_H
2.27 ! frystyk 26: #include "HTProt.h"
2.20 frystyk 27: </PRE>
2.26 frystyk 28: <P>
2.20 frystyk 29: We define the max NNTP line as rather long as the result coming from a
2.26 frystyk 30: <CODE>XOVER</CODE> command needs it. If the line is longer then it is chopped,
31: but we will almost have received the information we're looking for.
32: <PRE>
33: #ifndef NEWS_PORT
34: #define NEWS_PORT 119 /* See rfc977 */
35: #endif
2.6 timbl 36:
2.26 frystyk 37: #define MAX_NEWS_LINE 4096
2.18 frystyk 38:
2.27 ! frystyk 39: extern HTProtCallback HTLoadNews;
2.18 frystyk 40: </PRE>
2.26 frystyk 41: <H3>
42: Setting Number of Articles to Show
43: </H3>
44: <P>
45: You can set the number of news articles to be shown at a time. If you set
46: the number to none (<CODE>0</CODE>) then <EM>all</EM> articles are shown
47: at once. This is also the default behavior.
48: <PRE>extern BOOL HTNews_setMaxArticles (int new_max);
2.18 frystyk 49: extern int HTNews_maxArticles (void);
50: </PRE>
51: <PRE>
2.1 timbl 52: #endif /* HTNEWS_H */
2.18 frystyk 53: </PRE>
2.26 frystyk 54: <P>
55: <HR>
2.23 frystyk 56: <ADDRESS>
2.27 ! frystyk 57: @(#) $Id: HTNews.html,v 2.26.2.1 1996/10/29 21:27:45 eric Exp $
2.23 frystyk 58: </ADDRESS>
2.26 frystyk 59: </BODY></HTML>
Webmaster