rearrange service startup a bit, now Node.startService() returns a Deferred that fires when the tub is actually ready, and there is also a Node.when_tub_ready() hook. This allows get_local_addresses() to be slow and not break everything. Changed all necessary test cases to accomodate this slow startup.

This commit is contained in:
Brian Warner
2007-03-08 15:10:36 -07:00
parent 2f02659b5a
commit 78d19c271c
6 changed files with 57 additions and 18 deletions

View File

@ -29,6 +29,7 @@ class Client(node.Node, Referenceable):
def __init__(self, basedir="."):
node.Node.__init__(self, basedir)
self.queen = None # self.queen is either None or a RemoteReference
self.my_pburl = None
self.all_peers = set()
self.peer_pburls = {}
self.connections = {}