GUnixInputStream

GUnixInputStream — Streaming input operations for Unix file descriptors

Synopsis


#include <gio/gunixinputstream.h>


                    GUnixInputStream;
GInputStream*       g_unix_input_stream_new             (int fd,
                                                         gboolean close_fd_at_close);


Object Hierarchy


  GObject
   +----GInputStream
         +----GUnixInputStream

Description

GUnixInputStream implements GInputStream for reading from a unix file descriptor, including asynchronous operations. The file descriptor much be selectable, so it doesn't work with opened files.

Details

GUnixInputStream

typedef struct _GUnixInputStream GUnixInputStream;

Implements GInputStream for reading from selectable unix file descriptors


g_unix_input_stream_new ()

GInputStream*       g_unix_input_stream_new             (int fd,
                                                         gboolean close_fd_at_close);

Creates a new GUnixInputStream for the given fd. If close_fd_at_close is TRUE, the file descriptor will be closed when the stream is closed.

fd :

unix file descriptor.

close_fd_at_close :

a gboolean.

Returns :

a GUnixInputStream.

See Also

GInputStream