Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/chat
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-06-30 16:26:12 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-06-30 16:26:12 (GMT)
commit23b6c1e98a0fcadbcfb26ee1d475e36bce67dc88 (patch)
treeaf11bb1e27fbf35482ab85e1b8c744c435574f14 /sugar/chat
parent27927f80f63dcb25a208bf98150a4b3f8d2f856d (diff)
Use well known address for mesh chat
Diffstat (limited to 'sugar/chat')
-rw-r--r--sugar/chat/MeshChat.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/sugar/chat/MeshChat.py b/sugar/chat/MeshChat.py
index 0edc4c1..d9f4b02 100644
--- a/sugar/chat/MeshChat.py
+++ b/sugar/chat/MeshChat.py
@@ -7,6 +7,7 @@ import sugar.env
class MeshChat(GroupChat):
SERVICE_TYPE = "_olpc_mesh_chat._udp"
+ SERVICE_ADDRESS = "232.5.5.5"
SERVICE_PORT = 6301
def __init__(self):
@@ -28,9 +29,6 @@ class MeshChat(GroupChat):
self._setup_stream(service)
def _publish(self):
- # Use random currently unassigned multicast address
- address = "232.%d.%d.%d" % (random.randint(0, 254), random.randint(1, 254),
- random.randint(1, 254))
service = Service(sugar.env.get_nick_name(), MeshChat.SERVICE_TYPE,
- 'local', address, MeshChat.SERVICE_PORT)
+ 'local', MeshChat.SERVICE_ADDRESS, MeshChat.SERVICE_PORT)
self._pservice.register_service(service)