Skip to content

match osc message based on address and types #60

@avlapp

Description

@avlapp

In the liblo c/c++ osc library, one can specify a method which matches a osc message based on address and types:

/* add method that will match the path /foo/bar, with two numbers, coerced
 * to float and int */
lo_server_thread_add_method(st, "/foo/bar", "fi", foo_handler, NULL);

So "/error", "sis" matches a other message then "/error", "f"

Is this possible with go-osc?

I see there references to a 'OSC Type Tag String' in the code, but not sure if or how this can be used for pattern matching:
https://github.com/hypebeast/go-osc/blob/cec5a8a1e5f5/osc/osc.go#L220
https://github.com/hypebeast/go-osc/blob/cec5a8a1e5f5/osc/osc.go#L282

Liblo:

https://github.com/radarsat1/liblo/blob/master/examples/example_server.c
https://github.com/radarsat1/liblo/blob/master/lo/lo_types.h

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions