Here is what we are playing with at the moment, the 'universal server'. #!/usr/bin/python import select import sys import socket import csnd import threading This is a multiple-client csound server class. the listener is put in a separate thread class CsoundServerMult: This is the listener thread function. It just waits for TCP connections Server start-up:eventually setblocking should be made 0 This is the interpreter function. If something is seen on the socket, it executes it as Python code def interpret(self): This is the interpreter loop:
Graph IRI | Count |
---|---|
http://dbkwik.webdatacommons.org | 6 |