/usr/share/doc/libstarlink-ast-doc/node141.html is in libstarlink-ast-doc 8.6.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--Converted with LaTeX2HTML 2008 (1.71)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Creating a Channel</TITLE>
<META NAME="description" CONTENT="Creating a Channel">
<META NAME="keywords" CONTENT="sun211">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="sun211.css">
<LINK REL="next" HREF="node142.html">
<LINK REL="previous" HREF="node140.html">
<LINK REL="up" HREF="node139.html">
<LINK REL="next" HREF="node142.html">
</HEAD>
<BODY >
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html1910"
HREF="node142.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html1908"
HREF="node139.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html1902"
HREF="node140.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1911"
HREF="node142.html">Writing Objects to a</A>
<B> Up:</B> <A NAME="tex2html1909"
HREF="node139.html">Saving and Restoring Objects</A>
<B> Previous:</B> <A NAME="tex2html1903"
HREF="node140.html">The Channel Model</A>
<BR>
<BR></DIV>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION000152000000000000000"></A><A NAME="ss:creatingachannel"></A>
<BR>
Creating a Channel
</H2>
<P>
The process of creating a ChannelChannel is straightforward. As you
might expect, it uses the constructor function astChannelastChannel:
<P>
<SMALL CLASS="SMALL">
<BR>
<IMG
WIDTH="323" HEIGHT="109" ALIGN="BOTTOM" BORDER="0"
SRC="img229.png"
ALT="\begin{terminalv}
...">
<BR>
</SMALL>
<P>
The first two arguments to astChannel specify the external source and
sink that the Channel is to use. There arguments are pointers to C
functions and we will examine their use in more detail later
(§<A HREF="node152.html#ss:channelsource">15.13</A> and §<A HREF="node153.html#ss:channelsink">15.14</A>).
<P>
In this very simple example we have supplied NULL pointers for both
the source and sink functions. This requests the default behaviour,
which means that textual input will be read from the program's
standard input stream (typically, this means your keyboard) while
textual output will go to the standard output stream (typically
appearing on your screen). On UNIX systems, of course, either of these
streams can easily be redirected to files. This default behaviour can be
changed by assigning values to the Channel's SinkFileSinkFile and/or SourceFileSourceFile
attributes. These attributes specify the paths to text files that are to
be used in place of the standard input and output streams.
<P>
<BR><HR>
</BODY>
</HTML>
|