summaryrefslogtreecommitdiff
path: root/demoscript/Ice
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-09-23 11:37:49 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-09-23 11:37:49 -0230
commit2eeb903794903455fcf4f4d82f2ad2eb0d5f4807 (patch)
treeb4c667b45a2503f4567f229d5e3677cbe38b6e83 /demoscript/Ice
parentMinor change to Udptransceiver to ensure proper tracing on failure (diff)
downloadice-2eeb903794903455fcf4f4d82f2ad2eb0d5f4807.tar.bz2
ice-2eeb903794903455fcf4f4d82f2ad2eb0d5f4807.tar.xz
ice-2eeb903794903455fcf4f4d82f2ad2eb0d5f4807.zip
ICE-5526 multicast demo not working on OSX 10.9
Diffstat (limited to 'demoscript/Ice')
-rw-r--r--demoscript/Ice/multicast.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/demoscript/Ice/multicast.py b/demoscript/Ice/multicast.py
index ddb6a97d7b8..e3c4dbaec56 100644
--- a/demoscript/Ice/multicast.py
+++ b/demoscript/Ice/multicast.py
@@ -73,10 +73,14 @@ def run(clientCmd, serverCmd):
sys.stdout.flush()
#
- # On OS X, using the interface-local address doesn't work, the client fails with
- # a "Host not reachable" error, instead we use a link-local address with on loopback.
+ # On OS X, using the site-local address doesn't work, the server fails with
+ # a "Can't assign requested address" error, instead we use a link-local address
+ # with on loopback.
#
- endpoint = 'udp -h \\"ff15::1:1\\" -p 10000'
+ if Util.isDarwin():
+ endpoint = 'udp -h \\"ff02::1:1\\" -p 10000 --interface \\"::1\\"'
+ else:
+ endpoint = 'udp -h \\"ff15::1:1\\" -p 10000'
serverCmd += ' --Ice.IPv6=1 --Discover.Endpoints="%s"' % (endpoint)
clientCmd += ' --Ice.IPv6=1 --Discover.Proxy="discover:%s"' % (endpoint)