<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="GUnixInputStream">
<refmeta>
<refentrytitle role="top_of_page">GUnixInputStream</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GIO Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GUnixInputStream</refname>
<refpurpose>Streaming input operations for Unix file descriptors</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>

#include &lt;gio/gunixinputstream.h&gt;


                    <link linkend="GUnixInputStream-struct">GUnixInputStream</link>;
<link linkend="GInputStream">GInputStream</link>*       <link linkend="g-unix-input-stream-new">g_unix_input_stream_new</link>             (<link linkend="int">int</link> fd,
                                                         <link linkend="gboolean">gboolean</link> close_fd_at_close);


</synopsis>
</refsynopsisdiv>

<refsect1 role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GInputStream">GInputStream</link>
         +----GUnixInputStream
</synopsis>

</refsect1>








<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>
<link linkend="GUnixInputStream"><type>GUnixInputStream</type></link> implements <link linkend="GInputStream"><type>GInputStream</type></link> for reading from a
unix file descriptor, including asynchronous operations. The file
descriptor must be selectable, so it doesn't work with opened files.</para>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="GUnixInputStream-struct" role="struct"/>GUnixInputStream</title>
<indexterm><primary>GUnixInputStream</primary></indexterm><programlisting>typedef struct _GUnixInputStream GUnixInputStream;</programlisting>
<para>
Implements <link linkend="GInputStream"><type>GInputStream</type></link> for reading from selectable unix file descriptors</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="g-unix-input-stream-new" role="function"/>g_unix_input_stream_new ()</title>
<indexterm><primary>g_unix_input_stream_new</primary></indexterm><programlisting><link linkend="GInputStream">GInputStream</link>*       g_unix_input_stream_new             (<link linkend="int">int</link> fd,
                                                         <link linkend="gboolean">gboolean</link> close_fd_at_close);</programlisting>
<para>
Creates a new <link linkend="GUnixInputStream"><type>GUnixInputStream</type></link> for the given <parameter>fd</parameter>. If <parameter>close_fd_at_close</parameter>
is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the file descriptor will be closed when the stream is closed.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>fd</parameter>&nbsp;:</term>
<listitem><simpara> unix file descriptor.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>close_fd_at_close</parameter>&nbsp;:</term>
<listitem><simpara> a <link linkend="gboolean"><type>gboolean</type></link>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> a <link linkend="GUnixInputStream"><type>GUnixInputStream</type></link>. 
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>



<refsect1>
<title>See Also</title>
<link linkend="GInputStream"><type>GInputStream</type></link>
</refsect1>


<refsect1><refsect2 /><refsect2 /></refsect1>
</refentry>
