Gio.TcpWrapperConnection

g GObject.Object GObject.Object Gio.IOStream Gio.IOStream GObject.Object->Gio.IOStream Gio.SocketConnection Gio.SocketConnection Gio.IOStream->Gio.SocketConnection Gio.TcpConnection Gio.TcpConnection Gio.SocketConnection->Gio.TcpConnection Gio.TcpWrapperConnection Gio.TcpWrapperConnection Gio.TcpConnection->Gio.TcpWrapperConnection

Subclasses:

None

Methods

Inherited:

Gio.TcpConnection (2), Gio.SocketConnection (9), Gio.IOStream (11), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (base_io_stream, socket)

get_base_io_stream ()

Virtual Methods

Inherited:

Gio.IOStream (5), GObject.Object (7)

Properties

Inherited:

Gio.TcpConnection (1), Gio.SocketConnection (1), Gio.IOStream (3)

Name

Type

Flags

Short Description

base-io-stream

Gio.IOStream

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gio.TcpConnection

r

Class Details

class Gio.TcpWrapperConnection(**kwargs)
Bases:

Gio.TcpConnection

Abstract:

No

Structure:

Gio.TcpWrapperConnectionClass

A GTcpWrapperConnection can be used to wrap a [class`Gio`.IOStream] that is based on a [class`Gio`.Socket], but which is not actually a [class`Gio`.SocketConnection]. This is used by [class`Gio`.SocketClient] so that it can always return a [class`Gio`.SocketConnection], even when the connection it has actually created is not directly a [class`Gio`.SocketConnection].

New in version 2.28.

classmethod new(base_io_stream, socket)[source]
Parameters:
Returns:

the new Gio.SocketConnection.

Return type:

Gio.SocketConnection

Wraps base_io_stream and socket together as a Gio.SocketConnection.

New in version 2.28.

get_base_io_stream()[source]
Returns:

self's base Gio.IOStream

Return type:

Gio.IOStream

Gets self's base Gio.IOStream

Property Details

Gio.TcpWrapperConnection.props.base_io_stream
Name:

base-io-stream

Type:

Gio.IOStream

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The wrapped [class`Gio`.IOStream].

New in version 2.28.