<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Le 2021-04-28 à 10 h 22, Fons Adriaensen a écrit :<br>
<blockquote type="cite"
cite="mid:20210428142242.quf2u25p4i2cynva@mail1.linuxaudio.cyso.net">
<pre class="moz-quote-pre" wrap="">Can't find any official reference to this, but one way to send OSC over
TCP was to prefix each packet with a 32-bit int (in network byte order
of course) giving the lenght of the packet [1]. IIRC there was even some
RFC about sending any type of packets over TCP by doing exactly that.
In 1.1 this was replaced by SLIP encoding, destroying the nice 32-bit
alignment of all data elements that we had before. Apparently this
was selected only because the OSC authors happened to have some
hardware using SLIP encoding -- not a good idea IMHO.</pre>
</blockquote>
<p>From the 1.1 paper (<a class="moz-txt-link-freetext" href="https://cnmat.berkeley.edu/publications/features-and-future-open-sound-control-version-11-nime">https://cnmat.berkeley.edu/publications/features-and-future-open-sound-control-version-11-nime</a>)
:<br>
</p>
<p>"<span style="left: 552.8px; top: 813.827px; font-size: 16.4px;
font-family: sans-serif; transform: scaleX(0.814626);" dir="ltr">This
new specification enormously expands the range of </span><span
style="left: 533.6px; top: 833.027px; font-size: 16.4px;
font-family: sans-serif; transform: scaleX(0.808924);" dir="ltr">protocols
and hardware transports that can be used to </span><span
style="left: 533.6px; top: 852.227px; font-size: 16.4px;
font-family: sans-serif; transform: scaleX(0.83259);" dir="ltr">communicate
OSC encoded packets including Firewire, </span><span
style="left: 533.6px; top: 871.427px; font-size: 16.4px;
font-family: sans-serif; transform: scaleX(0.85578);" dir="ltr">Ethernet,
and USB (using TCP/IP); RS232 and RS422 and </span><span
style="left: 533.6px; top: 890.627px; font-size: 16.4px;
font-family: sans-serif; transform: scaleX(0.820031);" dir="ltr">Serial
USB a</span><span style="left: 624.4px; top: 890.627px;
font-size: 16.4px; font-family: sans-serif; transform:
scaleX(0.800286);" dir="ltr">nd Serial Bluetooth and Serial
Zigbee</span><span style="left: 596px; top: 794.627px;
font-size: 16.4px; font-family: sans-serif; transform:
scaleX(0.78857);" dir="ltr"></span>"</p>
<p>So it looks like using SLIP is a compromise. Maybe the method you
mentionned for TCP could be added, but the overhead of SLIP seems
to add only 4 bytes (32 bits):
<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol">https://en.wikipedia.org/wiki/Serial_Line_Internet_Protocol</a></p>
<p>(disclaimer: I'm not a network specialist)<br>
</p>
<p>Marc<br>
</p>
<p><br>
</p>
</body>
</html>