Mercurial > code > home > repos > light9
diff bin/dmxserver @ 210:f41004d5a507
factored out some networking, new show/ layout, curvecalc works
author | drewp@bigasterisk.com |
---|---|
date | Sun, 10 Apr 2005 20:54:14 +0000 |
parents | 1a84c5e83d3e |
children | 44189a37a876 |
line wrap: on
line diff
--- a/bin/dmxserver Sun Apr 10 19:12:57 2005 +0000 +++ b/bin/dmxserver Sun Apr 10 20:54:14 2005 +0000 @@ -30,6 +30,7 @@ import run_local from light9.io import ParportDMX from light9.updatefreq import Updatefreq +from light9 import networking class XMLRPCServe(xmlrpc.XMLRPC): def __init__(self,options): @@ -181,7 +182,8 @@ print options -print "starting xmlrpc server on port 8030" -reactor.listenTCP(8030,server.Site(XMLRPCServe(options))) +port = networking.dmxServerPort() +print "starting xmlrpc server on port %s" % port +reactor.listenTCP(port,server.Site(XMLRPCServe(options))) reactor.run()