<refentry id="camel-CamelNNTPStream">
<refmeta>
<refentrytitle role="top_of_page" id="camel-CamelNNTPStream.top_of_page">CamelNNTPStream</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>CAMEL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>CamelNNTPStream</refname>
<refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv id="camel-CamelNNTPStream.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
                    <link linkend="CamelNNTPStream">CamelNNTPStream</link>;
enum                <link linkend="camel-nntp-stream-mode-t">camel_nntp_stream_mode_t</link>;
<link linkend="CamelStream">CamelStream</link> *       <link linkend="camel-nntp-stream-new">camel_nntp_stream_new</link>               (<link linkend="CamelStream">CamelStream</link> *source);
<link linkend="void">void</link>                <link linkend="camel-nntp-stream-set-mode">camel_nntp_stream_set_mode</link>          (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         <link linkend="camel-nntp-stream-mode-t">camel_nntp_stream_mode_t</link> mode);
<link linkend="int">int</link>                 <link linkend="camel-nntp-stream-line">camel_nntp_stream_line</link>              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **data,
                                                         unsigned <link linkend="int">int</link> *len);
<link linkend="int">int</link>                 <link linkend="camel-nntp-stream-gets">camel_nntp_stream_gets</link>              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **start,
                                                         unsigned <link linkend="int">int</link> *len);
<link linkend="int">int</link>                 <link linkend="camel-nntp-stream-getd">camel_nntp_stream_getd</link>              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **start,
                                                         unsigned <link linkend="int">int</link> *len);
</synopsis>
</refsynopsisdiv>









<refsect1 id="camel-CamelNNTPStream.description" role="desc">
<title role="desc.title">Description</title>
<para>
</para>
</refsect1>

<refsect1 id="camel-CamelNNTPStream.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="CamelNNTPStream" role="struct">
<title>CamelNNTPStream</title>
<indexterm zone="CamelNNTPStream"><primary sortas="CamelNNTPStream">CamelNNTPStream</primary></indexterm><programlisting>typedef struct {
	CamelStream parent;

	CamelStream *source;

	camel_nntp_stream_mode_t mode;
	int state;

	unsigned char *buf, *ptr, *end;
	unsigned char *linebuf, *lineptr, *lineend;
} CamelNNTPStream;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="camel-nntp-stream-mode-t" role="enum">
<title>enum camel_nntp_stream_mode_t</title>
<indexterm zone="camel-nntp-stream-mode-t"><primary sortas="camel_nntp_stream_mode_t">camel_nntp_stream_mode_t</primary></indexterm><programlisting>typedef enum {
	CAMEL_NNTP_STREAM_LINE,
	CAMEL_NNTP_STREAM_DATA,
	CAMEL_NNTP_STREAM_EOD	/* end of data, acts as if end of stream */
} camel_nntp_stream_mode_t;
</programlisting>
<para>
</para></refsect2>
<refsect2 id="camel-nntp-stream-new" role="function">
<title>camel_nntp_stream_new ()</title>
<indexterm zone="camel-nntp-stream-new"><primary sortas="camel_nntp_stream_new">camel_nntp_stream_new</primary></indexterm><programlisting><link linkend="CamelStream">CamelStream</link> *       camel_nntp_stream_new               (<link linkend="CamelStream">CamelStream</link> *source);</programlisting>
<para>
Returns a NULL stream.  A null stream is always at eof, and
always returns success for all reads and writes.</para>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>source</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> the stream
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-nntp-stream-set-mode" role="function">
<title>camel_nntp_stream_set_mode ()</title>
<indexterm zone="camel-nntp-stream-set-mode"><primary sortas="camel_nntp_stream_set_mode">camel_nntp_stream_set_mode</primary></indexterm><programlisting><link linkend="void">void</link>                camel_nntp_stream_set_mode          (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         <link linkend="camel-nntp-stream-mode-t">camel_nntp_stream_mode_t</link> mode);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>is</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>mode</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-nntp-stream-line" role="function">
<title>camel_nntp_stream_line ()</title>
<indexterm zone="camel-nntp-stream-line"><primary sortas="camel_nntp_stream_line">camel_nntp_stream_line</primary></indexterm><programlisting><link linkend="int">int</link>                 camel_nntp_stream_line              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **data,
                                                         unsigned <link linkend="int">int</link> *len);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>is</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>data</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>len</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-nntp-stream-gets" role="function">
<title>camel_nntp_stream_gets ()</title>
<indexterm zone="camel-nntp-stream-gets"><primary sortas="camel_nntp_stream_gets">camel_nntp_stream_gets</primary></indexterm><programlisting><link linkend="int">int</link>                 camel_nntp_stream_gets              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **start,
                                                         unsigned <link linkend="int">int</link> *len);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>is</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>start</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>len</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-nntp-stream-getd" role="function">
<title>camel_nntp_stream_getd ()</title>
<indexterm zone="camel-nntp-stream-getd"><primary sortas="camel_nntp_stream_getd">camel_nntp_stream_getd</primary></indexterm><programlisting><link linkend="int">int</link>                 camel_nntp_stream_getd              (<link linkend="CamelNNTPStream">CamelNNTPStream</link> *is,
                                                         unsigned <link linkend="char">char</link> **start,
                                                         unsigned <link linkend="int">int</link> *len);</programlisting>
<para>
</para><variablelist role="params">
<varlistentry><term><parameter>is</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>start</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>len</parameter>&#160;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara>
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
