From: Mark H. <Ma...@re...> - 2021-03-02 07:33:41
|
Thanks for the tip, Thomas. There is indeed a lot of usage information in that file. mark -----Original Message----- From: Thomas Brand [mailto:to...@tr...] Sent: Monday, March 01, 2021 10:20 AM To: liblo development list Subject: Re: [liblo] how to connect to a liblo TCP OSC server? On 2021-03-01 11:32, Fernando Carello wrote: > Hello Mark, thanks for replying. > > So I can simply access the fields of the "argv" union, based upon the > value of "type". Excellent. > > I looked at lo_osc_types.h as a reference. > It seems to me, that some types may have more than one corresponding > field. How to choose? > > Example 1: > I have type = LO_STRING, which is 's' > Should I read &argv[n]->S or &argv[n]->s ? > > Example 2: > I have type = LO_INT32, which is 'i' > Should I read argv[n]->i or argv[n]->i32 ? > > Same goes for 'f' (read from ->f or ->f32 ?) > > Thanks for the clarification > > Fernando > Hi Fernando in that case s and f are good to use. For a broad overview on all operations, the code in src/testlo.c has it all, a nice cheat-sheet. Ciao Thomas _______________________________________________ liblo-devel mailing list lib...@li... https://lists.sourceforge.net/lists/listinfo/liblo-devel |