/* ** (c) COPYRIGHT MIT 1995. ** Please first read the full copyright statement in the file COPYRIGH. */
This is the News/NNTP client module that handles all communication with News/NNTP-servers.
This module is implemented by HTNews.c, and it is a part of the W3C Sample Code Library.
#ifndef HTNEWS_H #define HTNEWS_H #include "HTProt.h" #ifdef __cplusplus extern "C" { #endif
We define the max NNTP line as rather long as the result coming from a
XOVER
command needs it. If the line is longer then it is chopped,
but we will almost have received the information we're looking for.
#ifndef NEWS_PORT #define NEWS_PORT 119 /* See rfc977 */ #endif #define MAX_NEWS_LINE 4096 extern HTProtCallback HTLoadNews;
You can set the number of news articles to be shown at a time. If you set
the number to none (0
) then all articles are shown
at once. This is also the default behavior.
extern BOOL HTNews_setMaxArticles (int new_max); extern int HTNews_maxArticles (void);
#ifdef __cplusplus } #endif #endif /* HTNEWS_H */