[chuck-users] IP address from incoming OSC message?
mike clemow
michaelclemow at gmail.com
Thu Aug 19 15:31:42 EDT 2010
Could you route them through OSCulator and alter their addresses based on
the host?
Mike
On Thu, Aug 19, 2010 at 1:05 AM, Michael Heuer <heuermh at gmail.com> wrote:
> Michael Heuer <heuermh at gmail.com> wrote:
>
> > Is it possible to determine the IP address of the client sending an
> > incoming OSC message? There is no documentation on the API of the
> > OscEvent class.
>
> Sorry, doesn't appear so.
>
> src/ulib_opsc.cpp:104
>
> // init base class
> if( !type_engine_import_class_begin( env, "OscEvent", "Event",
> env->global(), osc_address_ctor,
> osc_address_dtor ) )
> return FALSE;
>
> // add member variable - OSCAddress object
>
> osc_address_offset_data = type_engine_import_mvar( env, "int",
> "@OscEvent_Data", FALSE );
> if( osc_recv_offset_data == CK_INVALID_OFFSET ) goto error;
>
> // keep type around for initialization ( so other classes can return it
> )
>
> osc_addr_type_ptr = env->class_def;
>
> func = make_new_mfun( "int", "set", osc_address_set );
> func->add_arg( "string" , "addr" );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "int", "hasMsg", osc_address_has_mesg );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "int", "nextMsg", osc_address_next_mesg );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "int", "getInt", osc_address_next_int );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "float", "getFloat", osc_address_next_float );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "string", "getString", osc_address_next_string );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> func = make_new_mfun( "int", "can_wait", osc_address_can_wait );
> if( !type_engine_import_mfun( env, func ) ) goto error;
>
> type_engine_import_class_end( env );
> ...
>
> michael
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
--
http://michaelclemow.com
http://semiotech.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20100819/1b26d674/attachment.html>
More information about the chuck-users
mailing list