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 | 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.TcpConnectionAbstract: No Structure: Gio.TcpWrapperConnectionClassA
Gio.TcpWrapperConnectioncan be used to wrap aGio.IOStreamthat is based on aGio.Socket, but which is not actually aGio.SocketConnection. This is used byGio.SocketClientso that it can always return aGio.SocketConnection, even when the connection it has actually created is not directly aGio.SocketConnection.New in version 2.28.
-
classmethod
new(base_io_stream, socket)[source]¶ Parameters: - base_io_stream (
Gio.IOStream) – theGio.IOStreamto wrap - socket (
Gio.Socket) – theGio.Socketassociated with base_io_stream
Returns: the new
Gio.SocketConnection.Return type: Wraps base_io_stream and socket together as a
Gio.SocketConnection.New in version 2.28.
- base_io_stream (
-
get_base_io_stream()[source]¶ Returns: self’s base Gio.IOStreamReturn type: Gio.IOStreamGets self’s base
Gio.IOStream
-
classmethod
Property Details¶
-
Gio.TcpWrapperConnection.props.base_io_stream¶ Name: base-io-streamType: Gio.IOStreamDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe wrapped
Gio.IOStream