summaryrefslogtreecommitdiff
diff options
authorJohn M Collins <[email protected]>2014-04-21 23:00:48 +0100
committerJohn M Collins <[email protected]>2014-04-21 23:00:48 +0100
commit7f03585f167dbcc24a5392aa582e4529546e8a80 (patch)
treebc23b87b52235733ef5ad7ae0eb33c0754a9cffd
parent309dd7bf23a7eef2d1e358e63f881126b84868c1 (diff)
downloadgnubatch-master.tar.gz
Put "not server" message into PyQt client.HEADmaster
-rw-r--r--batchwin/gbclient.py1
-rw-r--r--batchwin/reqmess.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/batchwin/gbclient.py b/batchwin/gbclient.py
index ff41e5a..2cd5e41 100644
--- a/batchwin/gbclient.py
+++ b/batchwin/gbclient.py
@@ -158,6 +158,7 @@ class gbclient(QObject):
if self.state != gbclient.STATE_CONNRQ: return
if self.socket.state() != QAbstractSocket.ConnectedState: return
# Request sync with host
+ self.send_netmsg(reqmess.N_SETNOTSERVER)
self.send_netmsg(reqmess.N_REQSYNC)
self.state = gbclient.STATE_SYNCRQ
self.host.connected = True
diff --git a/batchwin/reqmess.py b/batchwin/reqmess.py
index a7ab637..4f7593b 100644
--- a/batchwin/reqmess.py
+++ b/batchwin/reqmess.py
@@ -158,6 +158,8 @@ N_SYNCSINGLE= (NET_REQ|13) # Sync a single job
N_RJASSIGN = (NET_REQ|15) # Network message - given job remote assigns
N_XBNATT = (NET_REQ|17) # Request to attach xbnetserv process
N_ROAMUSER = (NET_REQ|18) # Note user logged in to xbnetserv
+N_SETNOTSERVER= (NET_REQ|19) # Network message - set not server
+N_SETISSERVER = (NET_REQ|20) # Network message - unset not server
N_CONNOK = (NET_REPLY|0) # Connection ok
N_REMLOCK_NONE= (NET_REPLY|1) # Lock - no reply