Annotation of libwww/Library/src/WWWApp.html, revision 2.7
2.1 frystyk 1: <HTML>
2: <HEAD>
2.2 frystyk 3: <TITLE>Non-Mandatory Application Include File</TITLE>
2.7 ! frystyk 4: <!-- Changed by: Henrik Frystyk Nielsen, 1-Feb-1996 -->
2.1 frystyk 5: <NEXTID N="z11">
6: </HEAD>
7: <BODY>
8:
2.2 frystyk 9: <H1>Non-Mandatory Application Include File</H1>
2.1 frystyk 10:
11: <PRE>
12: /*
13: ** (c) COPYRIGHT MIT 1995.
14: ** Please first read the full copyright statement in the file COPYRIGH.
15: */
16: </PRE>
17:
18: In addition top the basic W3C Reference Library include file called <A
19: HREF="WWWLib.html">WWWLib.h</A> you <EM>can</EM> also include this
20: file called WWWApp.h depending on the needs of your
21: application. However, it is not required and none of the files
22: included below are ever used in the core part of the Library
23: itself. Only if this file is included, the extra modules will get
24: included in the linked object code. It is also possible to include
25: only a subset of the files below if the functionality you are after is
26: covered by them.
27:
28: <PRE>
29: #ifndef WWWAPP_H
30: #define WWWAPP_H
31: </PRE>
32:
33: <PRE>
34: #ifdef __cplusplus
35: extern "C" {
36: #endif
37: </PRE>
38:
2.7 ! frystyk 39: <H2>Generating the First Anchor</H2>
2.2 frystyk 40:
41: This module provides some "make life easier" functions in order to get
42: the application going. They help you generate the first anchor, also
43: called the <EM>home anchor</EM>. It also contains a nice set of
44: default WWW addresses.
45:
46: <PRE>
47: #include "<A HREF="HTHome.html">HTHome.h</A>"
2.1 frystyk 48: </PRE>
49:
2.7 ! frystyk 50: <H2>When Terminating a Request</H2>
2.3 frystyk 51:
52: When a request is terminated, the application often has to do some
53: action as a result of the request (and of the result of the
54: request). The Application part of the Library provides two following
55: modules to handle <EM>logging</EM> and <EM>history
56: management</EM>. You can register a <EM>POST request handler</EM> in
57: the <A HREF="HTNet.html">Net Manager</A> as described in the <A
2.4 frystyk 58: HREF="../User/Using/Overview.html">User's Guide</A>. <P>
59:
60: You can find a function called <CODE>HTLoadTerminate</CODE> in the <A
2.5 frystyk 61: HREF="HTHome.html">HTHome module</A> that enables all the functionality
2.4 frystyk 62: for handling a request result.
2.3 frystyk 63:
64: <H3>Logging</H3>
2.1 frystyk 65:
66: Often it is required to log the requests issued to the Library. This
67: can either be the case if the application is a server or it can also
68: be useful in a client application. This module provides a simple
69: logging mechanism which can be enabled if needed.
70:
71: <PRE>
2.2 frystyk 72: #include "<A HREF="HTLog.html">HTLog.h</A>"
2.1 frystyk 73: </PRE>
74:
2.3 frystyk 75: <H3>History Management</H3>
2.1 frystyk 76:
77: Another type of logging is keeping track of which documents a user has
78: visited when browsing along on the Web. The Library history manager
79: provides a basic set of functionality to keep track of a linear
80: history list.
81:
82: <PRE>
2.2 frystyk 83: #include "<A HREF="HTHist.html">HTHist.h</A>"
2.1 frystyk 84: </PRE>
85:
86: End of application specific modules
87:
88: <PRE>
89: #ifdef __cplusplus
90: } /* end extern C definitions */
91: #endif
92:
93: #endif
94: </PRE>
95:
96: End of WWWAPP definition
97:
98: </BODY>
99: </HTML>
Webmaster