![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
#include <gio/gunixinputstream.h> GUnixInputStream; GInputStream* g_unix_input_stream_new (int fd, gboolean close_fd_at_close);
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.
typedef struct _GUnixInputStream GUnixInputStream;
Implements GInputStream for reading from selectable unix file descriptors
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.
|
unix file descriptor. |
|
a gboolean. |
Returns : |
a GUnixInputStream. |