:right-sidebar: True TcpWrapperConnection =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.28 .. class:: TcpWrapperConnection(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gio.TcpConnection`, :class:`~gi.repository.Gio.SocketConnection`, :class:`~gi.repository.Gio.IOStream`, :class:`~gi.repository.GObject.Object` A ``GTcpWrapperConnection`` can be used to wrap a :obj:`~gi.repository.Gio.IOStream` that is based on a :obj:`~gi.repository.Gio.Socket`\, but which is not actually a :obj:`~gi.repository.Gio.SocketConnection`\. This is used by :obj:`~gi.repository.Gio.SocketClient` so that it can always return a :obj:`~gi.repository.Gio.SocketConnection`\, even when the connection it has actually created is not directly a :obj:`~gi.repository.Gio.SocketConnection`\. Constructors ------------ .. rst-class:: interim-class .. class:: TcpWrapperConnection :no-index: .. classmethod:: new(base_io_stream: ~gi.repository.Gio.IOStream, socket: ~gi.repository.Gio.Socket) -> ~gi.repository.Gio.SocketConnection Wraps ``base_io_stream`` and ``socket`` together as a :obj:`~gi.repository.Gio.SocketConnection`\. .. versionadded:: 2.28 :param base_io_stream: the :obj:`~gi.repository.Gio.IOStream` to wrap :param socket: the :obj:`~gi.repository.Gio.Socket` associated with ``base_io_stream`` Methods ------- .. rst-class:: interim-class .. class:: TcpWrapperConnection :no-index: .. method:: get_base_io_stream() -> ~gi.repository.Gio.IOStream Gets ``conn``\'s base :obj:`~gi.repository.Gio.IOStream` Properties ---------- .. rst-class:: interim-class .. class:: TcpWrapperConnection :no-index: .. attribute:: props.base_io_stream :type: ~gi.repository.Gio.IOStream The type of the None singleton. .. versionadded:: 2.28 Fields ------ .. rst-class:: interim-class .. class:: TcpWrapperConnection :no-index: .. attribute:: parent_instance .. attribute:: priv