TcpWrapperConnection

Added in version 2.28.

class TcpWrapperConnection(**properties: Any)

Superclasses: TcpConnection, SocketConnection, IOStream, Object

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

Constructors

class TcpWrapperConnection
classmethod new(base_io_stream: IOStream, socket: Socket) SocketConnection

Wraps base_io_stream and socket together as a SocketConnection.

Added in version 2.28.

Parameters:
  • base_io_stream – the IOStream to wrap

  • socket – the Socket associated with base_io_stream

Methods

class TcpWrapperConnection
get_base_io_stream() IOStream

Gets conn’s base IOStream

Properties

class TcpWrapperConnection
props.base_io_stream: IOStream

The wrapped IOStream.

Added in version 2.28.

Fields

class TcpWrapperConnection
parent_instance
priv