Could you route them through OSCulator and alter their addresses based on the host?<div><br></div><div>Mike<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 1:05 AM, Michael Heuer <span dir="ltr"><<a href="mailto:heuermh@gmail.com">heuermh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Michael Heuer <<a href="mailto:heuermh@gmail.com">heuermh@gmail.com</a>> wrote:<br>
<br>
> Is it possible to determine the IP address of the client sending an<br>
> incoming OSC message?  There is no documentation on the API of the<br>
> OscEvent class.<br>
<br>
</div>Sorry, doesn't appear so.<br>
<br>
src/ulib_opsc.cpp:104<br>
<br>
    // init base class<br>
    if( !type_engine_import_class_begin( env, "OscEvent", "Event",<br>
                                         env->global(), osc_address_ctor,<br>
                                         osc_address_dtor ) )<br>
        return FALSE;<br>
<br>
    // add member variable  - OSCAddress object<br>
<br>
    osc_address_offset_data = type_engine_import_mvar( env, "int",<br>
"@OscEvent_Data", FALSE );<br>
    if( osc_recv_offset_data == CK_INVALID_OFFSET ) goto error;<br>
<br>
    // keep type around for initialization ( so other classes can return it )<br>
<br>
    osc_addr_type_ptr = env->class_def;<br>
<br>
    func = make_new_mfun( "int", "set", osc_address_set );<br>
    func->add_arg( "string" , "addr" );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "int", "hasMsg", osc_address_has_mesg );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "int", "nextMsg", osc_address_next_mesg );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "int", "getInt", osc_address_next_int );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "float", "getFloat", osc_address_next_float );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "string", "getString", osc_address_next_string );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    func = make_new_mfun( "int", "can_wait", osc_address_can_wait );<br>
    if( !type_engine_import_mfun( env, func ) ) goto error;<br>
<br>
    type_engine_import_class_end( env );<br>
...<br>
<div><div></div><div class="h5"><br>
   michael<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://michaelclemow.com">http://michaelclemow.com</a><br><a href="http://semiotech.org">http://semiotech.org</a><br><br>
</div>