[PD] EOF on socket

nico sl1200mk2 at free.fr
Thu Aug 18 22:24:10 CEST 2005


here's my proc
proc pd_send {all} {
set to_pd [socket 127.0.0.1 40000]
puts $to_pd $all
flush $to_pd
}

proc vu {x} {
pd_send "$x ;"
}
there's the ";" in vu
if i don't close $to_pd , i get a message like
netreceive : accept failed

with close $to_pd
if i ask for pd_send every  0.1s, it fail
every 0.2s ,it's ok

i would like to sequence every 0.1s but......
>> in fact, it was a problem from tcl [socket]
>> as [netreceive] need to get EOF to process data, i have to open and
>> close connection each time i send data.
>> and [socket] from tcl is as speed to handle 0,1s open/close
>
> you know about ";"s and their meaning in pd messages, right? its just 
> that i dont see any below..and you shouldnt need to open and close the 
> socket every time you send a message...
>
>>
>> i believe....
>> thanks
>> nico
>>
>>> nico wrote:
>>>>>
>>>>> it looks like you are trying to much data at once via the network.
>>>>>
>>>>> probably you might get better results if you try to send all the
>>>>> data in
>>>>> one single message [1 33 2 77 3 23 .... 15 89( and repack this list
>>>>> to
>>>>> small sub-lists on the receiver-side.
>>>>
>>>> in fact, i send all the list in one message [1 23, 4 67, 3 88, 
>>>> ......(
>>>>
>>>
>>> in fact, this is one _message-box_ containing several _messages_
>>> (separated by commas ",")
>>>
>>> e.g. [1, 2( is the same as
>>>
>>> [t b b]
>>> |     |
>>> [2(   [1(
>>>
>>>
>>> mfga.sd.r
>>> IOhannes
>>>
>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
>






More information about the Pd-list mailing list