Skip to content

Commit

Permalink
now run broadcast server as well
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Aug 27, 2013
1 parent 9321c9d commit 58b0be3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Change Log
**********

**Pyro 4.23**

- Pyro4.test.echoserver now correctly runs the NS's broadcast server as well


**Pyro 4.22**

- support added in daemon to accept multiple serializers in incoming messages
Expand Down
7 changes: 7 additions & 0 deletions src/Pyro4/test/echoserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, hostname):
def run(self):
self.uri, self.ns_daemon, self.bc_server = naming.startNS(self.hostname)
self.started.set()
if self.bc_server:
self.bc_server.runInThread()
self.ns_daemon.requestLoop()


Expand Down Expand Up @@ -108,6 +110,11 @@ def main(args, returnWithoutLooping=False):
ns.register(objectName, uri)
if options.verbose:
print("using name server at %s" % ns._pyroUri)
if nameserver is not None:
if nameserver.bc_server:
print("broadcast server running at %s" % nameserver.bc_server.locationStr) # XXX
else:
print("not using a broadcast server")
else:
if options.verbose:
print("not using a name server.")
Expand Down

0 comments on commit 58b0be3

Please sign in to comment.