Part of twisted.protocols.amp View Source View In Hierarchy
Method | __init__ | Undocumented |
Method | locateResponder | Unify the implementations of CommandLocator
and |
Method | __repr__ | A verbose string representation which gives us information about this |
Method | makeConnection | Emit a helpful log message when the connection is made. |
Method | connectionLost | Emit a helpful log message when the connection is lost. |
Inherited from BinaryBoxProtocol:
Method | sendBox | Send a amp.Box to my peer. |
Method | dataReceived | Either parse incoming data as AmpBox es or relay
it to our nested |
Method | proto_init | String received in the 'init' state. |
Method | proto_key | String received in the 'key' state. If the key is empty, a complete |
Method | proto_value | String received in the 'value' state. |
Method | lengthLimitExceeded | The key length limit was exceeded. Disconnect the transport and make |
Method | unhandledError | The buck stops here. This error was completely unhandled, time to |
Method | _switchTo | Switch this BinaryBoxProtocol's transport to a new protocol. You need |
Method | _lockForSwitch | Lock this binary protocol so that no further boxes may be sent. This |
Method | _unlockFromSwitch | Unlock this locked binary protocol so that further boxes may be sent |
Method | _prepareTLS | Used by StartTLSCommand to put us into the state where we don't |
Method | _startTLS | Used by TLSBox to initiate the SSL handshake. |
Method | _getPeerCertificate | Undocumented |
Method | _defaultStartTLSResponder | The default TLS responder doesn't specify any certificate or anything. |
Inherited from StatefulStringProtocol (via BinaryBoxProtocol):
Method | stringReceived | Choose a protocol phase function and call it. |
Inherited from IntNStringReceiver (via BinaryBoxProtocol, Int16StringReceiver):
Method | stringReceived | Override this. |
Method | sendString | Send an prefixed string to the other end of the connection. |
Inherited from BaseProtocol (via BinaryBoxProtocol, Int16StringReceiver, IntNStringReceiver, Protocol):
Method | connectionMade | Called when a connection is made. |
Inherited from _PauseableMixin (via BinaryBoxProtocol, Int16StringReceiver, IntNStringReceiver):
Method | pauseProducing | Undocumented |
Method | resumeProducing | Undocumented |
Method | stopProducing | Undocumented |
Inherited from BoxDispatcher:
Method | startReceivingBoxes | The given boxSender is going to start calling boxReceived on this |
Method | stopReceivingBoxes | No further boxes will be received here. Terminate all currently |
Method | failAllOutgoing | Call the errback on all outstanding requests awaiting responses. |
Method | callRemoteString | This is a low-level API, designed only for optimizing simple messages |
Method | callRemote | This is the primary high-level API for sending messages via AMP. Invoke it |
Method | unhandledError | This is a terminal callback called after application code has had a |
Method | ampBoxReceived | An AmpBox was received, representing a command, or an answer to a |
Method | dispatchCommand | A box with a _command key was received. |
Method | _nextTag | Generate protocol-local serial numbers for _ask keys. |
Method | _sendBoxCommand | Send a command across the wire with the given amp.Box . |
Method | _answerReceived | An AMP box was received that answered a command previously sent with |
Method | _errorReceived | An AMP box was received that answered a command previously sent with |
Method | _commandReceived | |
Method | _safeEmit | Emit a box, ignoring ProtocolSwitched
and ConnectionLost errors |
Inherited from CommandLocator:
Class | __metaclass__ | This metaclass keeps track of all of the Command.responder-decorated |
Method | lookupFunction | Deprecated synonym for locateResponder |
Method | _wrapWithSerialization | Wrap aCallable with its command's argument de-serialization |
CommandLocator
and SimpleStringLocator
to perform both kinds of dispatch, preferring CommandLocator
.