<br>Hi Paul,<div><br></div><div>std::vector doesn't make a good container for OSC messages, as message argument  types aren't generally contiguous (a message could be two ints and a float, for example). </div><div><br></div><div>Instead you need some intermediate data structures to handle argument lists, introspecting types from arguments and unpacking values. This is what oscpack does:</div><div><br></div><div><span style="line-height: 1.7;"> https://code.google.com/p/oscpack/source/browse/trunk/examples/SimpleReceive.cpp</span></div><div><br></div><div>It's straightforward to use and I've found it reliable.</div><div><br></div><div>Jamie</div><div><br></div><div><br><div id="cm_replymail_content_wrap"><div class="" style="color: rgb(0, 0, 0);">On Tue, Mar 10, 2015 at 7:42 pm,  Paul Keyes <spskeyes@gmail.com> wrote:            <div id="cm_replymail_content_1426059803" style="overflow: visible;"><blockquote style="color: #303B40;"><div dir="ltr">If I really want to use OSC is there a simple way to do it?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 24, 2014 at 4:10 PM, Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu">msp@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paul -<br>
<br>
No need to use OSC for this - you can just use "netsend".  THere's sample<br>
code for receiving from netsend in pd/src/u_pdreceive.c.<br>
<br>
cheers<br>
Miller<br>
<div><div class="h5"><br>
On Fri, Oct 24, 2014 at 03:21:22PM -0300, Paul Keyes wrote:<br>
> Hi,<br>
><br>
> I'm sending a list from pd to a c++/liblo app like so:<br>
><br>
> [mylist]<br>
> |<br>
> [list prepend /osc_addr]<br>
> |<br>
> [list trim]<br>
> |<br>
> [packOSC]<br>
><br>
> ...<br>
><br>
> How can I read this list into an array or vector in the c++ app?<br>
> There seems to be lots of libraries, I've been testing liblo, but nothing<br>
> straightforward for receiving a list.<br>
><br>
> Any help is greatly appreciated!<br>
<br>
</div></div>> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote></div><br></div>
</blockquote></div></div>            </div>            </div>