[PD] tcpserver/client question
IOhannes m zmölnig
zmoelnig at iem.at
Fri Mar 26 15:38:26 CET 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ivica Ico Bukvic wrote:
> Ok, I tried now working with the tcpserver/client model and am unable to
> solve following problem:
>
> when a tcpclient (or server) outputs a long string, it splits is for
> some reason into two separate lines (perhaps that is how the buffer
the reason is, that tcp/ip works like this. it is a stream based
protocol, that is: message agnostic.
bytes are guaranteed one after each other, but there is no delimiter
between bytes.
if you need a delimiter, you have to transmit one (FUDI uses ";" as a
message delimiter; OSC-over-TCP transmits the message-length, so the
receiver can repratition the stream accordingly,
fg,sdf
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkusxuIACgkQkX2Xpv6ydvT+qACg4kspQJEx7doK3p8xEuqthAoo
JN8AoMve6qWuFXPsrcJHzEypQ1lWupfL
=p+s2
-----END PGP SIGNATURE-----
More information about the Pd-list
mailing list