Class

GioSimpleIOStream

Description [src]

final class Gio.SimpleIOStream : Gio.IOStream {
  /* No available fields */
}

GSimpleIOStream creates a GIOStream from an arbitrary GInputStream and GOutputStream. This allows any pair of input and output streams to be used with GIOStream methods.

This is useful when you obtained a GInputStream and a GOutputStream by other means, for instance creating them with platform specific methods as g_unix_input_stream_new() or g_win32_input_stream_new(), and you want to take advantage of the methods provided by GIOStream.

Available since:2.44

Hierarchy

hierarchy this GSimpleIOStream ancestor_0 GIOStream ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Ancestors

Constructors

g_simple_io_stream_new

Creates a new GSimpleIOStream wrapping input_stream and output_stream. See also GIOStream.

Available since: 2.44

Instance methods

Methods inherited from GIOStream (10)
g_io_stream_clear_pending

Clears the pending flag on stream.

Available since: 2.22

g_io_stream_close

Closes the stream, releasing resources related to it. This will also close the individual input and output streams, if they are not already closed.

Available since: 2.22

g_io_stream_close_async

Requests an asynchronous close of the stream, releasing resources related to it. When the operation is finished callback will be called. You can then call g_io_stream_close_finish() to get the result of the operation.

Available since: 2.22

g_io_stream_close_finish

Closes a stream.

Available since: 2.22

g_io_stream_get_input_stream

Gets the input stream for this object. This is used for reading.

Available since: 2.22

g_io_stream_get_output_stream

Gets the output stream for this object. This is used for writing.

Available since: 2.22

g_io_stream_has_pending

Checks if a stream has pending actions.

Available since: 2.22

g_io_stream_is_closed

Checks if a stream is closed.

Available since: 2.22

g_io_stream_set_pending

Sets stream to have actions pending. If the pending flag is already set or stream is closed, it will return FALSE and set error.

Available since: 2.22

g_io_stream_splice_async

Asynchronously splice the output stream of stream1 to the input stream of stream2, and splice the output stream of stream2 to the input stream of stream1.

Available since: 2.28

Methods inherited from GObject (43)

Properties

Gio.SimpleIOStream:input-stream
No description available.

Available since: 2.44

Gio.SimpleIOStream:output-stream
No description available.

Available since: 2.44

Properties inherited from GIOStream (3)
Gio.IOStream:closed
No description available.
Gio.IOStream:input-stream
No description available.
Gio.IOStream:output-stream
No description available.

Signals

Signals inherited from GObject (1)