class Broker(banana.Banana): (source)
Known subclasses: twisted.mail.pb.MaildirBroker, twisted.mail.pb.MaildirClient
| Method | __init__ | Undocumented | 
| Method | cachedLocallyAs | Undocumented | 
| Method | cachedRemotelyAs | No summary | 
| Method | cacheLocally | (internal) | 
| Method | cacheRemotely | XXX | 
| Method | connectionFailed | Undocumented | 
| Method | connectionLost | The connection was lost. | 
| Method | connectionReady | Initialize. Called after Banana negotiation is done. | 
| Method | decCacheRef | (internal) Send a DECACHE directive. | 
| Method | dontNotifyOnDisconnect | |
| Method | expressionReceived | Evaluate an expression as it's received. | 
| Method | localObjectForID | Get a local object for a locally unique ID. | 
| Method | newLocalID | |
| Method | newRequestID | |
| Method | notifyOnConnect | |
| Method | notifyOnDisconnect | |
| Method | notifyOnFail | |
| Method | pauseProducing | Undocumented | 
| Method | proto_answer | (internal) Got an answer to a previously sent message. | 
| Method | proto_cachemessage | Undocumented | 
| Method | proto_decache | (internal) Decrement the reference count of a cached object. | 
| Method | proto_decref | (internal) Decrement the reference count of an object. | 
| Method | proto_didNotUnderstand | Respond to stock 'didNotUnderstand' message. | 
| Method | proto_error | (internal) Deal with an error. | 
| Method | proto_message | Undocumented | 
| Method | proto_uncache | (internal) Tell the client it is now OK to uncache an object. | 
| Method | proto_version | Protocol message: (version version-number) | 
| Method | registerPageProducer | Undocumented | 
| Method | registerReference | Store a persistent reference to a local object and map its id() to a generated, session-unique ID. | 
| Method | remoteForName | Returns an object from the remote name mapping. | 
| Method | remotelyCachedForLUID | |
| Method | resumeProducing | Called when the consumer attached to me runs out of buffer. | 
| Method | sendCall | Utility method to send an expression to the other side of the connection. | 
| Method | sendDecRef | (internal) Send a DECREF directive. | 
| Method | serialize | Jelly an object according to the remote security rules for this broker. | 
| Method | setNameForLocal | Store a special (string) ID for this object. | 
| Method | stopProducing | Undocumented | 
| Method | unserialize | Unjelly an sexp according to the local security rules for this broker. | 
| Class Variable | factory | Undocumented | 
| Class Variable | username | Undocumented | 
| Class Variable | version | Undocumented | 
| Instance Variable | connects | Undocumented | 
| Instance Variable | currentLocalID | Undocumented | 
| Instance Variable | currentRequestID | Undocumented | 
| Instance Variable | disconnected | Undocumented | 
| Instance Variable | disconnects | Undocumented | 
| Instance Variable | failures | Undocumented | 
| Instance Variable | jellyArgs | Undocumented | 
| Instance Variable | jellyKw | Undocumented | 
| Instance Variable | jellyMethod | Undocumented | 
| Instance Variable | locallyCachedObjects | Undocumented | 
| Instance Variable | localObjects | Undocumented | 
| Instance Variable | localSecurity | Undocumented | 
| Instance Variable | luids | Undocumented | 
| Instance Variable | maxBrokerRefsViolations | Undocumented | 
| Instance Variable | pageProducers | Undocumented | 
| Instance Variable | remotelyCachedLUIDs | Undocumented | 
| Instance Variable | remotelyCachedObjects | Undocumented | 
| Instance Variable | remoteSecurity | Undocumented | 
| Instance Variable | security | Undocumented | 
| Instance Variable | serializingPerspective | Undocumented | 
| Instance Variable | unserializingPerspective | Undocumented | 
| Instance Variable | waitingForAnswers | Undocumented | 
| Method | _recvMessage | Received a message-send. | 
| Method | _sendAnswer | (internal) Send an answer to a previously sent message. | 
| Method | _sendError | (internal) Send an error for a previously sent message. | 
| Method | _sendFailure | Log error and then send it. | 
| Method | _sendFailureOrError | Call _sendErroror_sendFailure, depending on whether fail represents anErrorsubclass or not. | 
| Method | _sendMessage | Undocumented | 
| Instance Variable | _localCleanup | Undocumented | 
            Inherited from Banana:
          
| Method | callExpressionReceived | Undocumented | 
| Method | connectionMade | Called when a connection is made. | 
| Method | dataReceived | Called whenever data is received. | 
| Method | gotItem | Undocumented | 
| Method | sendEncoded | Send the encoded representation of the given object: | 
| Method | setPrefixLimit | Set the prefix limit for decoding done by this protocol instance. | 
| Class Variable | incomingVocabulary | Undocumented | 
| Class Variable | outgoingVocabulary | Undocumented | 
| Instance Variable | buffer | Undocumented | 
| Instance Variable | currentDialect | Undocumented | 
| Instance Variable | isClient | Undocumented | 
| Instance Variable | knownDialects | These are the profiles supported by this Banana implementation. | 
| Instance Variable | listStack | Undocumented | 
| Instance Variable | outgoingSymbolCount | Undocumented | 
| Instance Variable | outgoingSymbols | Undocumented | 
| Instance Variable | prefixLimit | Undocumented | 
| Method | _encode | Undocumented | 
| Method | _selectDialect | Undocumented | 
| Instance Variable | _largestInt | Undocumented | 
| Instance Variable | _largestLongInt | Undocumented | 
| Instance Variable | _smallestInt | Undocumented | 
| Instance Variable | _smallestLongInt | Undocumented | 
            Inherited from Protocol (via Banana):
          
| Method | logPrefix | Return a prefix matching the class name, to identify log messages related to this protocol instance. | 
            Inherited from BaseProtocol (via Banana, Protocol):
          
| Method | makeConnection | Make a connection to a transport and a server. | 
| Instance Variable | connected | Undocumented | 
| Instance Variable | transport | Undocumented | 
            Inherited from Ephemeral (via Banana):
          
| Method | __getstate__ | Undocumented | 
| Method | __reduce__ | Serialize any subclass of Ephemeralin a way which replaces it withEphemeralitself. | 
| Method | __setstate__ | Undocumented | 
| Instance Variable | __class__ | Undocumented | 
| Parameters | |
| instance | The instance to look up. | 
| incref | Flag to specify whether to increment the reference. | 
| Returns | |
| An ID that says what this instance is cached as remotely, or Noneif it's not. | |
| Returns | |
| An object previously stored with registerReferenceorNoneif there is no object which corresponds to the given identifier. | 
(internal) Got an answer to a previously sent message.
Look up the appropriate callback and call it.
| Parameters | |
| requestID | The request ID. | 
| netResult | The answer. | 
Undocumented
(internal) Decrement the reference count of a cached object.
If the reference count is zero, free the reference, then send an 'uncached' directive.
| Parameters | |
| objectID | The object ID. | 
(internal) Decrement the reference count of an object.
If the reference count is zero, it will free the reference to this object.
| Parameters | |
| objectID | The object ID. | 
Respond to stock 'didNotUnderstand' message.
Log the command that was not understood and continue. (Note: this will probably be changed to close the connection or raise an exception in the future.)
| Parameters | |
| command | The command to log. | 
Protocol message: (version version-number)
Check to make sure that both ends of the protocol are speaking the same version dialect.
| Parameters | |
| vnum | The version number. | 
| Parameters | |
| object | a local object | 
| Returns | |
| the generated ID | |
Returns an object from the remote name mapping.
Note that this does not check the validity of the name, only creates a translucent reference for it.
| Parameters | |
| name | The name to look up. | 
| Returns | |
| An object which maps to the name. | |
| Parameters | |
| *exp | The expression. | 
| Parameters | |
| object | The object to jelly. | 
| perspective | The perspective. | 
| method | The method. | 
| args | Arguments. | 
| kw | Keyword arguments. | 
Store a special (string) ID for this object.
This is how you specify a 'base' set of objects that the remote protocol can connect to.
| Parameters | |
| name | An ID. | 
| object | The object. | 
| Parameters | |
| sexp | The object to unjelly. | 
| perspective | The perspective. | 
Received a message-send.
Look up message based on object, unserialize the arguments, and invoke it with args, and send an 'answer' or 'error' response.
| Parameters | |
| findObjMethod | A callable which takes objectID as argument. | 
| requestID | The requiest ID. | 
| objectID | The object ID. | 
| message | The message. | 
| answerRequired | |
| netArgs | Arguments. | 
| netKw | Keyword arguments. | 
| Parameters | |
| netResult | The answer. | 
| requestID | The request ID. | 
| Parameters | |
| fail | The failure. | 
| requestID | The request ID. | 
_sendError or _sendFailure, depending on whether fail represents an Error subclass or not.| Parameters | |
| fail | The failure. | 
| requestID | The request ID. |