Files @ d34a4956417a
Branch filter:

Location: light9/light8/potserver.py - annotation

drewp
rsn has a separate thread that receives rlslider connections from a potserver.py process,
rsn has a separate thread that receives rlslider connections from a potserver.py process,
and they work
#!/usr/bin/python

import socket

from io import *

pots = SerialPots()
pots.golive()

while 1:
    l=pots.getlevels()
    try:
        s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.connect(("dash", socket.getservbyname('serpots','tcp')))

        s.send("%d %d %d %d\n" % l)
        s.close()
    except Exception,e:
        print "Exception: %s" % e