[PD] netsend/netreceive questions ...

IOhannes m zmölnig zmoelnig at iem.at
Wed Feb 22 23:03:34 CET 2017


On 02/22/2017 06:56 PM, Christof Ressi wrote:
> "tcpsend sends bytes over a tcp connection.

which is correct.

> Used in conjunction with packOSC will send OSC over tcp".

which is only half-correct.

it is only guaranteed to work if you use SLIP.

it *might* happen to work if you messages are small enough so they don't
get fragmented during delivery (i think the main problem is, that most
tests are done with smallish packets over local connections, where the
chances are low that fragmentation will occur).

the problem is, that if you rely on this to work, you are relying on
things outside of your control (the TCP/IP stack of all the network
devices involved in transmitting your data).
you could as well use UDP and hope that no collisions and congestion
will happen.

the only way to make it work reliably is by adding an extra packetizing
layer. the OSC specs recommend to use SLIP.

gfmasdr
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/20170222/55ac00a5/attachment-0001.sig>


More information about the Pd-list mailing list