File:  [Public] / libwww / Library / src / WWWNews.html
Revision 2.7: download - view: text, annotated - select for diffs
Mon May 4 19:37:55 1998 UTC (26 years, 1 month ago) by frystyk
Branches: MAIN
CVS tags: repeat-requests, candidate-5-4-1, before_webdav, Release-5-4-0, Release-5-3-1, Release-5-2-8, Release-5-2-6, Release-5-2, Release-5-1m, HEAD, Before-New-Trace-Messages, Amaya_2_4, Amaya-6-3, Amaya-6-1, Amaya-5-2, Amaya-4-3-2, Amaya-4-3-1, Amaya-4-3, Amaya-4-1-2, Amaya-4-1-0, Amaya-4-0-0, Amaya-3-2-1, Amaya-3-2, Amaya
version 5.1m

<HTML>
<HEAD>
  <TITLE>W3C Sample Code Library libwww News/NNTP Client</TITLE>
</HEAD>
<BODY>
<H1>
  Declaration of W3C Sample Code News/NNTP Client
</H1>
<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
<P>
This application interface defines a News client which &nbsp;can be used
together with the <A HREF="WWWCore.html">Library core</A>.The module itself
is <I>not</I> part of the <A HREF="WWWCore.html">Library core</A>. It may
be registered by the application if wanted. The application may also use
the <A HREF="HTProfil.html">application profiles</A> to initialize this module.
<PRE>
#ifndef WWWNEWS_H
#define WWWNEWS_H
</PRE>
<PRE>
#ifdef __cplusplus
extern "C" { 
#endif
</PRE>
<H3>
  System dependencies
</H3>
<P>
The <A HREF="wwwsys.html">wwwsys.h</A> file includes system-specific include
files and flags for I/O to network and disk. The only reason for this file
is that the Internet world is more complicated than Posix and ANSI.
<PRE>
#include "<A HREF="wwwsys.html">wwwsys.h</A>"
</PRE>
<H3>
  NNTP Protocol State machine
</H3>
<P>
The state machine handles requests and responses to an NNTP server according
to the NNTP specifications.
<PRE>#include "<A HREF="HTNews.html">HTNews.h</A>"
</PRE>
<H3>
  News Request Stream
</H3>
<P>
The request stream generates a request which may or may not include a message
body to be posted to the server
<PRE>#include "<A HREF="HTNewsRq.html">HTNewsRq.h</A>"
</PRE>
<H3>
  News Response Stream for Messages and group Listings
</H3>
<P>
The News response streams parses the output from an NNTP server. The two
formats understood are News groups and News articles.
<PRE>#include "<A HREF="HTNewsLs.html">HTNewsLs.h</A>"
</PRE>
<H3>
  Presentation of News Listings in HTML
</H3>
<P>
When the output has been received then we convert it to HTML by parsing it
through the following stream.
<PRE>#include "<A HREF="HTNDir.html">HTNDir.h</A>"
</PRE>
<P>
End of News module
<PRE>
#ifdef __cplusplus
} /* end extern C definitions */
#endif

#endif
</PRE>
<P>
  <HR>
<ADDRESS>
  @(#) $Id: WWWNews.html,v 2.7 1998/05/04 19:37:55 frystyk Exp $
</ADDRESS>
</BODY></HTML>

Webmaster