<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
If you look inside [unpackOSCstream] you'll see that it uses [slipdec]. So the other end must be using [slipenc] or they won't match up.<br>Unless you are doing this over a serial connection there is no need to use SLIP at all. [unpackOSC] should work properly with [tcpclient] or [tcpserver].<br><br>Martin<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; From: jamie@jamiebullock.com<br>&gt; Date: Fri, 9 Nov 2012 15:19:07 +0000<br>&gt; To: pedro.lopes@ist.utl.pt<br>&gt; CC: pd-list@iem.at; martin.peach@sympatico.ca<br>&gt; Subject: Re: [PD] bi-directional OSC over TCP from liblo<br>&gt; <br>&gt; <br>&gt; Hi Pedro,<br>&gt; <br>&gt; Thanks for the reply. To clarify I can OSC over *UDP* from liblo to/from Pd just fine using the mrpeach externals. It's using TCP, where I run into trouble. I think it's due to the streamed nature of TCP, and message boundaries, but I am not an expert on this.<br>&gt; <br>&gt; On 9 Nov 2012, at 14:00, Pedro Lopes &lt;pedro.lopes@ist.utl.pt&gt; wrote:<br>&gt; <br>&gt; &gt; hey jamie, <br>&gt; &gt; <br>&gt; &gt; Yep, in this project (https://vimeo.com/24818342) it was going back and forth from the core app (cpp) to pd. Using OSC. Cannot recall if TCP or not, but can probably track it down. (that should not make much of a difference at least outside the network layer).<br>&gt; &gt; <br>&gt; &gt; So you send from liblo and pd receives, but no data unpacks? Did I get it write? If you open a ./oscdump on command line you get the data? (meaning it would be a pd-side issue...)<br>&gt; <br>&gt; Yes that's correct. There is an example "echo server" that comes with liblo. I can get bidirectional communication liblo &lt;-&gt; using this example. If I replace one end of the communication with [tcpserver], liblo can connect, [tcpserver] receives data, but [unpackOSCstream] can't seem to unpack the data. Likewise [packOSCstream] doesn't seem to generate a data format that liblo can understand.<br>&gt; <br>&gt; best,<br>&gt; <br>&gt; Jamie<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Pd-list@iem.at mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br></div>                                               </div></body>
</html>