GIO Reference Manual | ||||
---|---|---|---|---|
#include <gio/gunixoutputstream.h> GUnixOutputStream; GOutputStream* g_unix_output_stream_new (int fd, gboolean close_fd_at_close);
GUnixOutputStream implements GOutputStream for writing to a unix file descriptor, including asynchronous operations. The file descriptor must be selectable, so it doesn't work with opened files.
typedef struct _GUnixOutputStream GUnixOutputStream;
Implements GOutputStream for outputting to selectable unix file descriptors
GOutputStream* g_unix_output_stream_new (int fd, gboolean close_fd_at_close);
Creates a new unix output stream for fd
. If close_fd_at_close
is TRUE
, the fd will be closed when the output stream is destroyed.
|
unix's file descriptor. |
|
a gboolean. |
Returns : |
GOutputStream. If close_fd_at_close is TRUE , then
fd will be closed when the GOutputStream is closed.
|