![]() |
![]() |
![]() |
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 must 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.
fd : | unix file descriptor. |
close_fd_at_close : | a gboolean. |
Returns : | a GUnixInputStream. |