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

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 The wrapped Gio.IOStream

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 Gio.TcpWrapperConnection can be used to wrap a Gio.IOStream that is based on a Gio.Socket, but which is not actually a Gio.SocketConnection. This is used by Gio.SocketClient so that it can always return a Gio.SocketConnection, even when the connection it has actually created is not directly a 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 Gio.IOStream