comparison bin/subserver @ 222:bb4d1e9b30c1

outline of new subserver
author drewp@bigasterisk.com
date Wed, 20 Apr 2005 05:26:53 +0000
parents
children 6a4e99505164
comparison
equal deleted inserted replaced
221:4a51d4eefa95 222:bb4d1e9b30c1
1 # keep the database of submasters, and mix up the current client
2 # requests into dmx levels for dmxserver
3
4 class SubServe:
5 """call the server with these messages"""
6
7 def allSubs(self):
8 """list of all the known subs"""
9
10 def output(self,levels):
11 """pass a dict of {sub : level} mappings"""
12
13
14 class SubClient:
15 """each client can receive these messages"""
16
17 def subAdded(self,newsub):
18 """sub was just added to the db"""
19
20 def subRemove(self,pastsub):
21 """this sub is about to be removed from the db"""
22
23 def subChange(self,sub):
24 """this is a new version of an existing sub"""