Gio.TcpWrapperConnection¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.TcpConnection (2), Gio.SocketConnection (9), Gio.IOStream (11), GObject.Object (37)
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.TcpWrapperConnection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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:
base_io_stream (
Gio.IOStream
) – theGio.IOStream
to wrapsocket (
Gio.Socket
) – theGio.Socket
associated 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.
- get_base_io_stream()[source]¶
- Returns:
self's base
Gio.IOStream
- Return type:
Gets self's base
Gio.IOStream
Property Details¶
- Gio.TcpWrapperConnection.props.base_io_stream¶
- Name:
base-io-stream
- Type:
- Default Value:
- Flags:
The wrapped [class`Gio`.IOStream].
New in version 2.28.