class documentation

class _SwitchBox(AmpBox):

Constructor: _SwitchBox(innerProto, **kw)

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.
Method __repr__ Undocumented
Instance Variable innerProto 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:

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

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

Parameters
innerProto:an IProtocol provider.the protocol instance to switch to.
**kwUndocumented
def __repr__(self) -> str:

Undocumented

innerProto =

Undocumented

def _sendTo(self, proto):

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