GSimpleIOStream

GSimpleIOStream — A wrapper around an input and an output stream.

Functions

Types and Values

Includes

#include <gio/gio.h>

Description

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.

Functions

g_simple_io_stream_new ()

GIOStream *
g_simple_io_stream_new (GInputStream *input_stream,
                        GOutputStream *output_stream);

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

Parameters

input_stream

a GInputStream.

 

output_stream

a GOutputStream.

 

Returns

a new GSimpleIOStream instance.

Since 2.44

Types and Values

GSimpleIOStream

typedef struct _GSimpleIOStream GSimpleIOStream;

A wrapper around a GInputStream and a GOutputStream.

Since 2.44

See Also

GIOStream