class documentation

class twisted.protocols.amp._SwitchBox(AmpBox): (source)

View In Hierarchy

Implementation detail of ProtocolSwitchCommand: I am an AmpBox which sets up state for the protocol to switch.

Method __init__ Create a _SwitchBox with the protocol to switch to after being sent.
Instance Variable innerProto Undocumented
Method __repr__ Undocumented
Method _sendTo Send me; I am the last box on the connection. All further traffic will be over the new protocol.

Inherited from AmpBox:

Class Variable __slots__ Undocumented
Method copy Return another AmpBox just like me.
Method serialize Convert me into a wire-encoded string.
def __init__(self, innerProto, **kw): (source)

Create a _SwitchBox with the protocol to switch to after being sent.

ParametersinnerProtothe protocol instance to switch to. (type: an IProtocol provider.)
kwUndocumented
innerProto = (source)

Undocumented

def __repr__(self): (source)

Undocumented

ReturnsUndocumented (type: str)
def _sendTo(self, proto): (source)

Send me; I am the last box on the connection. All further traffic will be over the new protocol.

API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.