Hi roman,
the code around networking object are some workarounds for differents bugs, the first was a crash when client number reach 32, but it seems to be fixed, I can't reproduce this anymore the second was something strange if several clients connect to the same server at the same time (when patch launch for example), so I add a timeout, if no answer in this timeout, the client disconnect there is also a mechanism to choose an available port at startup in server and the client try different port until it get a connection...
all of this is quite complex for a not so difficult task : I want to make several instance of Pd talking to each other on one machine
I started with udpsend/udpreceive but I found no way to do broadcast on localhost and I do need to have lots of clients multicasting is not a solution because it need to have a working networking interface then I tried udpserver which doesn't work (at least the version in the pd's SVN) then I switch to tcpserver and I got a lots of troubles...
I will try out iohannes version of iemnet and I'll also investigate those bugs
but other (simpler) solutions are welcome :-)
best
a
-- do it yourself http://antoine.villeret.free.fr
2013/7/2 Roman Haefeli reduzent@gmail.com
On Die, 2013-07-02 at 13:39 +0200, Antoine Villeret wrote:
hi again,
just saw this thread right after posting mine : http://lists.puredata.info/pipermail/pd-list/2013-07/103236.html
sorry for bothering
here is attached three small patches that make PD crash raw_client and raw_server work well together but when I try to connect more client (eg. 10 with 10_raw_client) crash happens...
What is all the code around the networking objects about, specially in raw_client.pd? Do you mind explaining what it does as it is not really fun to look at.
Or probably more interesting: What is it trying to achieve? Even when only loading one instance of raw_client.pd, I only get:
iemnet:sender-shutdown: Transport endpoint is not connected
Roman
Pd-dev mailing list Pd-dev@iem.at http://lists.puredata.info/listinfo/pd-dev