| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
RemoteReferenceOnly
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
__implemented__ = <implementedBy foolscap.referenceable.Remote
|
|||
__provides__ = <zope.interface.declarations.ClassProvides obje
|
|||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Return an IAddress-providing object that describes the remote peer. If we've connected to ourselves, this will be a foolscap.broker.LoopbackAddress instance. If we've connected to someone else, this will be a twisted.internet.address.IPv4Address instance, with .host and .port attributes. |
Register a callback to run when we lose this connection. The callback will be invoked with whatever extra arguments you provide to this function. For example:
def my_callback(name, number):
print name, number+4
cookie = rref.notifyOnDisconnect(my_callback, 'bob', number=3)
This function returns an opaque cookie. If you want to cancel the notification, pass this same cookie back to dontNotifyOnDisconnect: rref.dontNotifyOnDisconnect(cookie) Note that if the Tub is shutdown (via stopService), all notifyOnDisconnect handlers are cancelled. |
repr(x)
|
|
|||
__implemented__
|
__provides__
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Oct 14 18:27:48 2008 | http://epydoc.sourceforge.net |