changeset 222:bb4d1e9b30c1

outline of new subserver
author drewp@bigasterisk.com
date Wed, 20 Apr 2005 05:26:53 +0000
parents 4a51d4eefa95
children f6262de03bf2
files bin/subserver
diffstat 1 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/subserver	Wed Apr 20 05:26:53 2005 +0000
@@ -0,0 +1,24 @@
+# keep the database of submasters, and mix up the current client
+# requests into dmx levels for dmxserver
+
+class SubServe:
+    """call the server with these messages"""
+    
+    def allSubs(self):
+        """list of all the known subs"""
+
+    def output(self,levels):
+        """pass a dict of {sub : level} mappings"""
+
+
+class SubClient:
+    """each client can receive these messages"""
+    
+    def subAdded(self,newsub):
+        """sub was just added to the db"""
+
+    def subRemove(self,pastsub):
+        """this sub is about to be removed from the db"""
+
+    def subChange(self,sub):
+        """this is a new version of an existing sub"""