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. |
twisted.protocols.amp.AmpBox.__init__
Create a _SwitchBox with the protocol to switch to after being sent.
Parameters | innerProto | the protocol instance to switch to. (type: an IProtocol provider.) |
kw | Undocumented |
twisted.protocols.amp.AmpBox._sendTo
Send me; I am the last box on the connection. All further traffic will be over the new protocol.