Hello,
I'm currently investigating the possibility of hosting PD patches on a webserver and letting users interact with the parameters using a Flash interface connected to PD by a flosc server (thanks for the tip, Frank; flosc is great...)
I've developed a single-user prototype for this project, and the initial signs look promising. Now my question is, how powerful of a server would be needed to allow multiple users to run seperate PD instances?
Let's assume that each patch would be running a very simple instrument - just oscillators and number controls. If each additional web user opened a seperate instance and the audio was streamed back through the Flash client (using Shoutcast perhaps?), at what point would the number of simultaneous users be maxed out on, say, an Athlon 64 3200 with a Gig of RAM?
I know this is all somewhat vague. I'm just curious to hear thoughts that any of you have on the matter. Also, I haven't yet figured out what sort of server-side coding would be neccessary to dynamically assign ports to their respective instances in PD. I suppose I should talk to a PERL adept, huh?
Thanks, Marcus
hi all,
Am Donnerstag 20 Mai 2004 23:54 schrieb marcus:
Hello,
[...snip...]
I know this is all somewhat vague. I'm just curious to hear thoughts that any of you have on the matter. Also, I haven't yet figured out what sort of server-side coding would be neccessary to dynamically assign ports to their respective instances in PD. I suppose I should talk to a PERL adept, huh?
usually, a good network implementation should not have a problem with multiple users on the same port. think of a web site .....
and then, many programs can be used stand-alone as deamons, that means for example: an ftp connection is incomming, the network deamon (inetd, xinetd, ...) fires up the neccesarry software/program to handle the incomming connection.
maybe it could all be done by just dynamically instantiating a subpatch for each incomming connection (and destroying afterwards), controlled by external events? like a script, called by inetd, sending a message to pd to create a subpatch (i.e. netsend/receive) by using the given network parameters?
just a thought ....
Thanks, Marcus
greets,
chris