[PD] tcpserver and tcpclient

Edwin van der Heide pd at evdh.net
Tue Mar 31 21:03:52 CEST 2020


> On 31 Mar 2020, at 09:21, IOhannes m zmölnig <zmoelnig at iem.at> wrote:
> 
> On 3/30/20 11:03 PM, Edwin van der Heide wrote:
>> 
> 
>>> in any case, you need to solve the problem of interleaved messages from
>>> multiple clients.
>> 
>> Yes you are right about iemnet/tcpclient vs mrpeach/tcpclient. And yes, I understand that solving the interleaved messages is important but that happens on the server side, not on the client side.
> 
> well, yes.
> interleaving is indeed only a problem on the server side.
> 
> but even with [mrpeach/tcpclient] you will eventually receive lists that
> are not delimited at the ";".
> e.g. two packages "floa" and "t 23;\n bang;\n" is totally possible.

Thanks for pointing out that delimiting is also needed on the client side.

Best!

Edwin
> 
> 
>> 
>> I’ve replaced it with iemnet/tcpclient and parse the bytes using [list store] (including some logic around it) and the crashes are gone on all platforms.
>> 
> 
> hooray.
> 
> gfmadsr
> IOhannes
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list






More information about the Pd-list mailing list