Hi Paul,
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).
Instead you need some intermediate data structures to handle argument lists, introspecting types from arguments and unpacking values. This is what oscpack does:
https://code.google.com/p/oscpack/source/browse/trunk/examples/SimpleReceive.cpp
It's straightforward to use and I've found it reliable.
Jamie
On Tue, Mar 10, 2015 at 7:42 pm, Paul Keyes <[email protected]> wrote:
If I really want to use OSC is there a simple way to do it?On Fri, Oct 24, 2014 at 4:10 PM, Miller Puckette <[email protected]> wrote:Hi Paul -
No need to use OSC for this - you can just use "netsend". THere's sample
code for receiving from netsend in pd/src/u_pdreceive.c.
cheers
Miller
> _______________________________________________
On Fri, Oct 24, 2014 at 03:21:22PM -0300, Paul Keyes wrote:
> Hi,
>
> I'm sending a list from pd to a c++/liblo app like so:
>
> [mylist]
> |
> [list prepend /osc_addr]
> |
> [list trim]
> |
> [packOSC]
>
> ...
>
> How can I read this list into an array or vector in the c++ app?
> There seems to be lots of libraries, I've been testing liblo, but nothing
> straightforward for receiving a list.
>
> Any help is greatly appreciated!
> [email protected] mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
