1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
<HTML><HEAD>
<TITLE>C Examples</TITLE>
<LINK rel=Previous href="c-ch.htm">
<LINK rel=ToC href="toc.htm">
<LINK rel=Index href="master.htm">
<LINK rel=Next href="c-app1.htm">
</HEAD><BODY BGCOLOR="#ffffff"><A NAME="topofpage"></A>
<TABLE WIDTH=100%>
<TR>
<TD ALIGN=LEFT>
<A NAME="topofpage"></A> <IMG SRC="as-c-lg.gif">
</TD>
<TD ALIGN=RIGHT>
<A href=toc.htm> <IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm> <IMG BORDER="0"src=navbhelp.gif alt="[ Index ]"></A>
<BR ALIGN=RIGHT>
<A href="c-ch.htm"><IMG BORDER="0"src=navbprev.gif alt="[ Previous ]"></A>
<A href="c-app1.htm"> <IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<A name="7983"> </A>
</TD>
</TR>
</TABLE>
<a name="3527">
</a><h2>C Examples</h2>
<p><a name="14910">
</a>This chapter contains some of the C examples that are available in the <code>examples/c</code> directory under the AOLserver installation directory. Look in the <code>examples/c</code> directory for additional examples.</p>
<p><a name="19969">
</a>These examples are indexed. If you want to find an example of a specific C function, look in the index under the name of the C function for the subentry "example of". For example:</p>
<p><a name="14927">
</a>Ns_RegisterDriver C function, 186</p>
<p><a name="14928">
</a> example of, 203, 225</p>
<a name="17826">
</a><h4>Contents</h4>
<p><a name="18923">
</a><Table Border = "3">
<tr><th><p><a name="18082">
</a><b>Example</b></p>
<th><p><a name="18084">
</a><b>Description</b></p>
<tr><td><p><a name="18052">
</a><a href="c-app1.htm#17805">Example 1: nshello</a></p>
<td><p><a name="18054">
</a>Implements simple "hello world"</p>
<tr><td><p><a name="18056">
</a><a href="c-app2.htm#14874">Example 2: alias</a></p>
<td><p><a name="18058">
</a>Provides arbitrary URL-to-file translation</p>
<tr><td><p><a name="18060">
</a><a href="c-app3.htm#15848">Example 3: counter</a></p>
<td><p><a name="18062">
</a>Generates odometer-like page count image</p>
<tr><td><p><a name="18064">
</a><a href="c-app4.htm#16333">Example 4: stats</a></p>
<td><p><a name="18066">
</a>Implements simple connection statistics</p>
<tr><td><p><a name="18068">
</a><a href="c-app5.htm#16799">Example 5: tclhello</a></p>
<td><p><a name="18070">
</a>Shows how to extend the built-in Tcl scripting language</p>
<tr><td><p><a name="18072">
</a><a href="c-app6.htm#16870">Example 6: tclcs</a></p>
<td><p><a name="18074">
</a>Adds critical section primitives to the built-in Tcl</p>
<tr><td><p><a name="18076">
</a><a href="c-app7.htm#19981">Example 7: postgres</a></p>
<td><p><a name="18078">
</a>Illustrates user-defined database driver for Postgres95</p>
</Table></p>
<p><a name="17832">
</a></p>
<TABLE BORDER="2" CELLPADDING="1" width="100%">
<TR><TD COLSPAN=3><P ALIGN=Center>
<IMG SRC="bluebult.gif">
<A HREF="#topofpage">
<FONT SIZE=-1>Top of Page</FONT></A>
<IMG SRC="bluebult.gif">
</TD></TR>
<TR><TD COLSPAN=3><P ALIGN=Center>
<A href="c-ch.htm">
<IMG BORDER="0" src=navbprev.gif alt="[ Previous ]"></A>
<A href=toc.htm>
<IMG BORDER="0" src=navbhome.gif alt="[ Contents ]"></A>
<A href=master.htm>
<IMG BORDER="0" src=navbhelp.gif alt="[ Index ]"></A>
<A href="c-app1.htm">
<IMG BORDER="0" src=navbnext.gif alt="[ Next ]"></A>
<BR align=center>
<FONT size=-1>Copyright © 1998-99 America Online,
Inc.</FONT>
</TD></TR></TABLE></BODY></HTML>
|