# HG changeset patch # User drewp@bigasterisk.com # Date 1113974813 0 # Node ID bb4d1e9b30c1a2989d200913275d44e19f400717 # Parent 4a51d4eefa95fb7e9ba07a7c986baeeced0e4266 outline of new subserver diff -r 4a51d4eefa95 -r bb4d1e9b30c1 bin/subserver --- /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"""