Go to the latest version of this document.

# ``twisted`.`protocols`.`amp`.`QuitBox``

class documentation

`class QuitBox(AmpBox): (source)`

Constructor: `QuitBox(*args, **kw)`

View In Hierarchy

I am an AmpBox that, upon being sent, terminates the connection.

Method | `__repr__` | Undocumented
Class Variable | `__slots__` | Undocumented
Method | `_sendTo` | Immediately call loseConnection after sending.

Inherited from `AmpBox`:

Method | `__init__` | Initialize a new `AmpBox`.
Method | `copy` | Return another AmpBox just like me.
Method | `serialize` | Convert me into a wire-encoded string.

def __repr__(self) -> `str`: (source)
overrides `twisted.protocols.amp.AmpBox.__repr__`

Undocumented

__slots__: `list[str]` = (source)
overrides `twisted.protocols.amp.AmpBox.__slots__`

Undocumented

def _sendTo(self, proto): (source)
overrides `twisted.protocols.amp.AmpBox._sendTo`

Immediately call loseConnection after sending.