Mercurial > code > home > repos > light9
view bin/subserver @ 887:4fe5612db2ed
curvecalc don't start doing graph work until our first sync
Ignore-this: a4cf7b3493bdc945c14742542b5c1a17
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sat, 08 Jun 2013 08:20:48 +0000 |
parents | 6a4e99505164 |
children | 33a5a98e9bf1 |
line wrap: on
line source
# 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""" def editsub 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"""