From daf0153c6cca401998982ff60d3fa74a92ca6fdb Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Fri, 9 Aug 2002 23:29:13 +0000 Subject: [PATCH] Send cluster mode via startup command --- direct/src/cluster/ClusterClient.py | 4 ++-- direct/src/cluster/ClusterMsgs.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/cluster/ClusterClient.py b/direct/src/cluster/ClusterClient.py index 578bba022e..a2e5e09a45 100644 --- a/direct/src/cluster/ClusterClient.py +++ b/direct/src/cluster/ClusterClient.py @@ -39,10 +39,10 @@ class ClusterClient(DirectObject.DirectObject): self.daemon.tellServer(serverConfig.serverName, clusterDaemonPort, serverCommand) - print 'blah' + print 'Begin waitForServers' if not self.daemon.waitForServers(len(configList)): print 'Cluster Client, no response from servers' - print 'post blah' + print 'End waitForServers' self.qcm=QueuedConnectionManager() self.serverList = [] self.msgHandler = ClusterMsgHandler(ClusterClient.MGR_NUM, self.notify) diff --git a/direct/src/cluster/ClusterMsgs.py b/direct/src/cluster/ClusterMsgs.py index a10820ad4c..ae8c8a212e 100644 --- a/direct/src/cluster/ClusterMsgs.py +++ b/direct/src/cluster/ClusterMsgs.py @@ -26,6 +26,7 @@ CLUSTER_DAEMON_PORT = 8001 SERVER_STARTUP_STRING = ( '!bash ppython -c ' + '"import __builtin__; ' + + '__builtin__.clusterMode = \'server\';' + '__builtin__.clusterServerPort = %s;' + '__builtin__.clusterSyncFlag = %d;' + '__builtin__.clusterDaemonClient = \'%s\';' +