GMime.StreamPipe

g GMime.Stream GMime.Stream GMime.StreamPipe GMime.StreamPipe GMime.Stream->GMime.StreamPipe GObject.Object GObject.Object GObject.Object->GMime.Stream

Subclasses:

None

Methods

Inherited:

GMime.Stream (17), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (fd)

get_owner ()

set_owner (owner)

Virtual Methods

Inherited:

GMime.Stream (10), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

eos

bool

r

True if end-of-stream

fd

int

r

pipe descriptor

owner

bool

r

True if this stream owns fd

parent_object

GMime.Stream

r

parent GMime.Stream

Class Details

class GMime.StreamPipe(**kwargs)
Bases:

GMime.Stream

Abstract:

No

Structure:

GMime.StreamPipeClass

A GMime.Stream wrapper around pipes.

classmethod new(fd)
Parameters:

fd (int) – a pipe descriptor

Returns:

a stream using fd.

Return type:

GMime.Stream

Creates a new GMime.StreamPipe object around fd.

get_owner()
Returns:

True if self owns the backend pipe descriptor or False otherwise.

Return type:

bool

Gets whether or not self owns the backend pipe descriptor.

set_owner(owner)
Parameters:

owner (bool) – owner

Sets whether or not self owns the backend pipe descriptor.

Note: owner should be True if the stream should close() the backend pipe descriptor when destroyed or False otherwise.