| Home | Trees | Indices | Help |
|
|---|
|
|
twisted.internet.protocol.BaseProtocol --+
|
twisted.internet.protocol.Protocol --+
|
banana.Banana --+
|
object --+ |
| |
referenceable.OnlyReferenceable --+ |
| |
referenceable.Referenceable --+
|
Broker
I manage a connection to a remote Broker.
|
|||
| slicerClass | |||
| unslicerClass | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
unsafeTracebacks = True
|
|||
requireSchema = False
|
|||
disconnected = False
|
|||
factory = None
|
|||
remote_broker = None
|
|||
startingTLS = False
|
|||
startedTLS = False
|
|||
use_remote_broker = True
|
|||
__implemented__ = <implementedBy foolscap.broker.Broker>
|
|||
__provides__ = <zope.interface.declarations.ClassProvides obje
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
tub = Nonethe Tub which contains us |
|||
|
yourReferenceByCLID maps your CLID to a RemoteReferenceData #@ivar yourReferenceByName: maps a per-Tub name to a RemoteReferenceData |
|||
|
yourReferenceByURL maps a global URL to a RemoteReferenceData |
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Called when a connection is made. This may be considered the initializer of the protocol, because it is called when the connection is completed. For clients, this is called once the connection to the server has been established; for servers, this is called after an accept() call stops blocking and a socket has been received. If you need to send any greeting or initial message, do it here.
|
|
Stop using this connection. If fireDisconnectWatchers is False, all disconnect watchers are removed before shutdown, so they will not be called (this is appropriate when the Broker is shutting down because the whole Tub is being shut down). We terminate the connection quickly, rather than waiting for the transmit queue to drain. |
Called when the connection is shut down. Clear any circular references here, and any external references to this Protocol. The connection has been closed.
|
The far end holds a Referenceable and has just sent us a reference to it (expressed as a small integer). If this is a new reference, they will give us an interface name too, and possibly a global URL for it. Obtain a RemoteReference object (creating it if necessary) to give to the local recipient. The sender remembers that we hold a reference to their object. When our RemoteReference goes away, we send a decref message to them, so they can possibly free their object. |
clid is the connection-local ID of the Referenceable the other end is trying to invoke or point to. If it is a number, they want an implicitly-created per-connection object that we sent to them at some point in the past. If it is a string, they want an object that was registered with our Factory. |
|
|||
__provides__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 14 18:27:47 2008 | http://epydoc.sourceforge.net |