[PD] tcpserver and tcpclient

IOhannes m zmölnig zmoelnig at iem.at
Tue Mar 31 09:21:24 CEST 2020


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.


> 
> 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20200331/af1cdae8/attachment.sig>


More information about the Pd-list mailing list