Annotation of libwww/Library/src/HTNews.html, revision 2.30

2.6       timbl       1: <HTML>
                      2: <HEAD>
2.26      frystyk     3:   <!-- Changed by: Henrik Frystyk Nielsen, 18-May-1996 -->
2.28      frystyk     4:   <TITLE>W3C Sample Code 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
2.29      frystyk    21: a part of the <A HREF="http://www.w3.org/Library/">W3C Sample Code
2.26      frystyk    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.30    ! vbancrof   27: 
        !            28: #ifdef __cplusplus
        !            29: extern "C" { 
        !            30: #endif 
2.20      frystyk    31: </PRE>
2.26      frystyk    32: <P>
2.20      frystyk    33: We define the max NNTP line as rather long as the result coming from a
2.26      frystyk    34: <CODE>XOVER</CODE> command needs it. If the line is longer then it is chopped,
                     35: but we will almost have received the information we're looking for.
                     36: <PRE>
                     37: #ifndef NEWS_PORT
                     38: #define NEWS_PORT              119                            /* See rfc977 */
                     39: #endif
2.6       timbl      40: 
2.26      frystyk    41: #define MAX_NEWS_LINE          4096
2.18      frystyk    42: 
2.27      frystyk    43: extern HTProtCallback HTLoadNews;
2.18      frystyk    44: </PRE>
2.26      frystyk    45: <H3>
                     46:   Setting Number of Articles to Show
                     47: </H3>
                     48: <P>
                     49: You can set the number of news articles to be shown at a time. If you set
                     50: the number to none (<CODE>0</CODE>) then <EM>all</EM> articles are shown
                     51: at once. This is also the default behavior.
                     52: <PRE>extern BOOL HTNews_setMaxArticles (int new_max);
2.18      frystyk    53: extern int HTNews_maxArticles (void);
                     54: </PRE>
                     55: <PRE>
2.30    ! vbancrof   56: #ifdef __cplusplus
        !            57: }
        !            58: #endif
        !            59: 
2.1       timbl      60: #endif /* HTNEWS_H */
2.18      frystyk    61: </PRE>
2.26      frystyk    62: <P>
                     63:   <HR>
2.23      frystyk    64: <ADDRESS>
2.30    ! vbancrof   65:   @(#) $Id: HTNews.html,v 2.29 1998/05/14 02:10:52 frystyk Exp $
2.23      frystyk    66: </ADDRESS>
2.26      frystyk    67: </BODY></HTML>

Webmaster